Glasses-free determination of absolute motion

ABSTRACT

During operation, an electronic device may capture images using multiple image sensors having different fields of view and positions. Then, the electronic device may determine, based at least in part on an apparent size of an anatomical feature in the images (such as an interpupillary distance) and a predefined or predetermined size of the anatomical feature, absolute motion of at least a portion of the individual along a direction between at least the portion of the individual and the electronic device. Moreover, the electronic device may compute based at least in part on an estimated distance along the direction corresponding to the apparent size and the predefined or predetermined size and angular information associated with one or more objects in the images relative to the positions, absolute motion of at least the portion of the individual in a plane that is perpendicular to the direction.

CROSS REFERENCE TO RELATED APPLICATION

This application claims the benefit of U.S. Provisional Application No. 62/805,963, entitled “Glasses-Free Determination of Absolute Motion,” by Sergio Aguirre-Valencia, et al., filed Feb. 15, 2019, the contents of which are hereby incorporated by reference.

BACKGROUND Field

The described embodiments relate to computer-based techniques for determining absolute motion of an individual along a direction without using glasses worn by the individual.

Related Art

Many electronic devices include user-interface devices (which are sometimes referred to as ‘human-interface devices’) that allow users to enter information, to interact with displayed objects and, more generally, to allow effective operation and control of the electronic devices. For example, user-interface devices may include: a keyboard, a mouse, a trackpad, a touch-sensitive display, a voice-recognition engine, a haptic device, an image sensor or a motion sensor.

Some user-interface devices involve direct or physical contact with a user. However, this type of interaction can be limiting, such as in composite or fully immersive environments (such as augmented reality and virtual reality) where more intuitive and integrated user interaction is desirable.

Moreover, other user-interface devices can be difficult to use. For example, voice-recognition engines allow simple natural language voice commands to be used. However, when performing more complicated or repetitive tasks, it can be tiresome to use such user-interface devices. Notable, voice control of electronic devices requires users to consciously think or mentally engage when they want to interact with an electronic device. In contrast, for complicated or repetitive tasks, most other user-interface devices allow users to perform the necessary operations in a less consciously active manner, which typically involves less mental effort and is also more time efficient.

Furthermore, for user-interface devices that do not involve direct contact, it can be difficult to quantify a user's motions. For example, some user-interface devices allow users to interact with electronic devices using gestures made in the air. However, these user-interface devices typically capture relative motion of the user, which can be limiting in applications that use absolute motion.

SUMMARY

An electronic device is described. This electronic device includes multiple image sensors that have different fields of view and positions, and that capture images. During operation, the electronic device may capture the images using the image sensors. Then, the electronic device may determine, based at least in part on an apparent size of an anatomical feature in the images and a predefined or predetermined size of the anatomical feature, absolute motion of at least a portion of the individual along a direction between at least the portion of the individual and the electronic device. Moreover, the electronic device may estimate a distance along the direction based at least in part on the apparent size of the anatomical feature in at least one of the images and the predefined or predetermined size of the anatomical feature. Next, the electronic device may compute, based at least in part on the estimated distance and angular information associated with one or more objects in the images relative to the positions, absolute motion of at least the portion of the individual in a plane that is perpendicular to the direction.

Note that at least the portion of the individual may include eyes of the individual. Moreover, the one or more objects may include pupils of the individual.

Furthermore, the electronic device may include second image sensors that have different second fields of view, and that capture second images. During operation, the electronic device may repeat the capturing, determining, estimating and computing operations for the second images to determine absolution motion of a second portion of the individual.

For example, the second portion of the individual may include a hand of the individual or a finger of the individual. Moreover, the electronic device may infer interaction with an object by the individual based at least in part on the determined absolute motion in the direction and/or the plane of at least the second portion of the individual. Alternatively, in some embodiments the electronic device may determine absolute motion of an object held by the individual (such as a pointer or a stylus) or an object that the individual interacts with. This interaction may involve direct contact with the individual or may be indirect. Thus, the individual may, via the determined absolute motion along the direction and/or in the plane, interact with, e.g., displayed content, such as stereoscopic or 3D images. In some embodiments, the interaction may be specified by the individual using gestures or virtual haptic interaction.

Additionally, the anatomical feature comprises: an interpupillary distance (ipd), a hand of the individual, a finger of the individual or another anatomical feature. The anatomical feature may be associated with the individual or a group of individuals that have one or more characteristics in common with the individual. For example, the group may include individuals having a common: ancestry, race, age, gender, socioeconomic status, and/or geographic region of residence as the individual. However, in some embodiments the group includes a diverse population. In some embodiments, the anatomical feature may be an average or mean ipd.

Moreover, the electronic device may include a time-of-flight (tof) sensor that captures tof information, and the absolute motion along the direction and/or in the plane may be determined based at least in part on the tof information.

Furthermore, the electronic device may include a display. During operation, the electronic device may generate stereoscopic images that include image parallax based at least in part on the determined absolute motion along the direction and in the plane and a viewing geometry that matches or corresponds to the absolute motion along the direction and in the plane. Then, the electronic device may provide the stereoscopic images on the display.

For example, the determined absolute motion in the direction and/or the plane of at least the portion of the individual may correspond to positions of eyes or pupils of the individual (such as the individual's gaze direction), and the stereoscopic images may be generated based at least in part on the positions of the eyes or pupils of the individual.

In some embodiments, the determined absolute motion in the direction and/or the plane of at least the portion of the individual may correspond to a focal point of the individual, and the stereoscopic images may be generated based at least in part on the focal point. Moreover, an intensity of a given voxel in a given one of the stereoscopic images may be based at least in part on a transfer function that specifies a transparency of the given voxel and the focal point, so that the stereoscopic images comprise foveated imaging.

Furthermore, the image sensors may capture images that include eyes of the individual, a hand or finger of the individual, and the display in which the stereoscopic images are displayed. Additionally, image parallax and motion parallax of the stereoscopic images within the viewing geometry may be based at least in part on the images.

Note that at least two of the image sensors may be arranged in a plane of the display, and the direction may be perpendicular to the display. More generally, the image sensors may be pointed or orientated in an arbitrary direction (which may not, per se, be perpendicular to the direction). For example, a first subset of the image sensors (with one or more image sensors) may provide one or more display fields of view, in which a displayed image is visible or can be captured. Moreover, a second subset of the image sensors (with one or more image sensors) may provide one or more eye fields of view, in which the eyes of the individual can be tracked. Furthermore, a third subset of the image sensors (with one or more image sensors) may provide one or more hand or finger fields of view, in which the hand or at least a finger can be tracked. The hand or finger fields of view may provide the interaction geometry, and that the intersection of the display fields of view, the eye fields of view and the hand or finger fields of view may provide the information used to create the True 3D environment.

Moreover, the absolute motion may be determined without using information associated with glasses worn by the individual (such as glasses having a known ipd) or a glove worn by the individual.

Another embodiment provides a non-transitory computer-readable storage medium that stores program instructions for use with the electronic device. When executed by the electronic device, the program instructions cause the electronic device to perform at least some of the operations described above.

Another embodiment provides a method, which may be performed by the electronic device. During the method, the electronic device may perform at least some of the operations described above.

The preceding summary is provided as an overview of some exemplary embodiments and to provide a basic understanding of aspects of the subject matter described herein. Accordingly, the above-described features are merely examples and should not be construed as narrowing the scope or spirit of the subject matter described herein in any way. Other features, aspects, and advantages of the subject matter described herein will become apparent from the following Detailed Description, Figures, and Claims.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 is a block diagram illustrating a graphical system in accordance with an embodiment of the present disclosure.

FIG. 2 is a drawing illustrating a frustum for a vertical display in the graphical system of FIG. 1 in accordance with an embodiment of the present disclosure.

FIG. 3 is a drawing illustrating a frustum for a horizontal display in the graphical system of FIG. 1 in accordance with an embodiment of the present disclosure.

FIG. 4 is a drawing illustrating a frustum for an inclined display in the graphical system of FIG. 1 in accordance with an embodiment of the present disclosure.

FIG. 5 is a drawing illustrating calculation of stereopsis scaling in the graphical system of FIG. 1 in accordance with an embodiment of the present disclosure.

FIG. 6 is a block diagram illustrating a computer system in accordance with an embodiment of the present disclosure.

FIG. 7 is a block diagram illustrating a pipeline performed by the computer system of FIG. 6 in accordance with an embodiment of the present disclosure.

FIG. 8A is a drawing illustrating a display in the graphical system of FIG. 1 in accordance with an embodiment of the present disclosure.

FIG. 8B is a drawing illustrating a display in the graphical system of FIG. 1 in accordance with an embodiment of the present disclosure.

FIG. 8C is a drawing illustrating a display in the graphical system of FIG. 1 in accordance with an embodiment of the present disclosure.

FIG. 9 is a drawing illustrating a virtual instrument in accordance with an embodiment of the present disclosure.

FIG. 10 is a flow diagram illustrating a method for providing stereoscopic images in accordance with an embodiment of the present disclosure.

FIG. 11 is a flow diagram illustrating a method for providing 3D stereoscopic images and associated 2D projections in accordance with an embodiment of the present disclosure.

FIG. 12 is a flow diagram illustrating a method for determining absolute motion in accordance with an embodiment of the present disclosure.

FIG. 13 is a drawing illustrating an interpupillary distance in accordance with an embodiment of the present disclosure.

FIG. 14 is a drawing illustrating a hand in accordance with an embodiment of the present disclosure.

FIG. 15 is a drawing illustrating different intersecting fields of view in accordance with an embodiment of the present disclosure.

FIG. 16 is a drawing illustrating determining absolute motion using the graphical system of FIG. 1 in accordance with an embodiment of the present disclosure.

FIG. 17 is a drawing illustrating a side view of a lenticular array display in accordance with an embodiment of the present disclosure.

FIG. 18 is a drawing illustrating a side view of operation of the lenticular array display of FIG. 17 in accordance with an embodiment of the present disclosure.

FIG. 19 is a drawing illustrating operation of the lenticular array display of FIG. 17 in accordance with an embodiment of the present disclosure.

FIG. 20 is a drawing illustrating a front view of the lenticular array display of FIG. 17 in accordance with an embodiment of the present disclosure.

FIG. 21 is a drawing illustrating a viewing geometry of the lenticular array display of FIG. 17 in accordance with an embodiment of the present disclosure.

FIG. 22 is a drawing illustrating dynamic mapping of pixels to tracked eye positions of a viewer in accordance with an embodiment of the present disclosure.

Table 1 provides pseudo-code for a segmentation calculation at the interface between tissue classes in accordance with an embodiment of the present disclosure.

Table 2 provides a representation of a problem-solving virtual instrument in accordance with an embodiment of the present disclosure.

Note that like reference numerals refer to corresponding parts throughout the drawings. Moreover, multiple instances of the same part are designated by a common prefix separated from an instance number by a dash.

DETAILED DESCRIPTION

Human perception of information about the surrounding environment contained in visible light (which is sometimes referred to as ‘eyesight,’ ‘sight,’ or ‘vision’) is facilitated by multiple physiological components in the human visual system, including senses that provide sensory inputs and the cognitive interpretation of the sensory inputs by the brain. The graphical system in the present application provides rendered images that intuitively facilitate accurate human perception of 3D visual information (i.e., the awareness of an object or a scene through physical sensation of the 3D visual information). In particular, the graphical system in the present application provides so-called True 3D via rendered left-eye and right-eye images that include apparent image parallax (i.e., a difference in the position of the object or the scene depicted in the rendered left-eye and the right-eye images that approximates the difference that would occur if the object or the scene were viewed along two different lines of sight associated with the positions of the left and right eyes). This apparent image parallax may provide depth acuity (the ability to resolve depth in detail) and thereby triggers realistic stereopsis in an individual (who is sometimes referred to as a ‘user,’ a ‘viewer’ or an ‘observer’), i.e., the sense of depth (and, more generally, actual 3D information) that is perceived by the individual because of retinal disparity or the difference in the left and right retinal images that occur when the object or the scene is viewed with both eyes or stereoscopically (as opposed to viewing with one eye or monoscopically).

The True 3D provided by the graphical system may incorporate a variety of additional features to enhance or maximize the depth acuity. In particular, the depth acuity may be enhanced by scaling the objects depicted in left-eye and the right-eye images prior to rendering based at least in part on the spatial resolution of the presented 3D visual information and the viewing geometry. Moreover, the graphical system may include motion parallax (the apparent relative motion of a stationary object against a background when the individual moves) in a sequence of rendered left-eye and right-eye images so that the displayed visual information is modified based at least in part on changes in the position of the individual. This capability may be facilitated by a sensor input to the graphical system that determines or indicates the motion of the individual while the individual views the rendered left-eye and the right-eye images. Furthermore, the sequence of rendered left-eye and right-eye images may include prehension, which, in this context, is the perception by the individual of taking hold, seizing, grasping or, more generally, interacting with the object. This capability may be facilitated by another sensor input to the graphical system that monitors interaction between the individual and the displayed visual information. For example, the individual may interact with the object using a stylus or their hand or finger. In addition, the depth acuity offered by the graphical system may be enhanced through the use of monoscopic depth cues, such as: relative sizes/positions (or geometric perspective), lighting, shading, occlusion, textural gradients, and/or depth cueing.

In a wide variety of applications, True 3D may allow the individual to combine cognition (i.e., a deliberative conscious mental process by which one achieves knowledge) and intuition (i.e., an unconscious mental process by which one acquires knowledge without inference or deliberative thought). This synergistic combination may further increase the individual's knowledge, allow them to use the graphical system to perform tasks more accurately and more efficiently. For example, this capability may allow a physician to synthesize the emotional function of the right brain with the analytical functions of the left brain to interpret the True 3D images as a more accurate and acceptable approximation of reality. In radiology, this may improve diagnoses or efficacy, and may increase the confidence of radiologists when making decisions. As a consequence, True 3D may allow radiologists to increase their throughput or workflow (e.g., the enhanced depth acuity may result in improved sensitivity to smaller features, thereby reducing the time needed to accurately resolve features in the rendered images). Alternatively, surgeons can use this capability to: plan surgeries or to perform virtual surgeries (for example, to rehearse a surgery), size implantable devices, and/or use live or real-time image data to work on a virtual or a real patient during a surgery (such as at a surgical table), which may otherwise be impossible using existing graphical systems. Furthermore, because the visual information in True 3D intuitively facilitates accurate human perception, it may be easier and less tiring for physicians to view the images provided by the graphical system than those provided by existing graphical systems. Collectively, these features may improve patient outcomes and may reduce the cost of providing medical care.

While the embodiments of True 3D may not result in perfect perception of the 3D visual information by all viewers (in principle, this may require additional sensory inputs, such as those related to balance), in general the deviations that occur may not be detected by most viewers. Thus, the graphical system may render images based at least in part on a volumetric virtual space that very closely approximates what the individual would see with their own visual system. As described further below in the discussion of applications of the graphical system, the deviations that do occur in the perception of the rendered images may be defined based at least in part on a given application, such as how accurately surgeons are able to deliver treatment based at least in part on the images provided by the graphical system.

Graphical System

FIG. 1 presents a block diagram of a graphical system 100, including a data engine 110, graphics (or rendering) engine 112, display 114, one or more optional position sensor(s) 116, and tracking engine 118. This graphical system may facilitate close-range stereoscopic viewing of 3D objects (such as those depicting human anatomy) with unrestricted head motion and hand-directed interaction with the 3D objects, thereby providing a rich holographic experience.

During operation, data engine 110 may receive input data (such as a computed-tomography or CT scan, histology, an ultrasound image, a magnetic resonance imaging or MRI scan, or another type of 2D image slice depicting volumetric information), including dimensions and spatial resolution. In an exemplary embodiment, the input data may include representations of human anatomy, such as input data that is compatible with a Digital Imaging and Communications in Medicine (DICOM) standard. However, a wide variety of types of input data may be used (including non-medical data), which may be obtained using different imaging techniques, different wavelengths of light (microwave, infrared, optical, X-ray), etc.

After receiving the input data, data engine 110 may: define segments in the data (such as labeling tissue versus air); other parameters (such as transfer functions for voxels); identify landmarks or reference objects in the data (such as anatomical features); and identify 3D objects in the data (such as the lung, liver, colon and, more generally, groups of voxels). One or more of these operations may be performed by or may be augmented based at least in part on input from a user or viewer 122 of graphical system 100.

As described further below, based at least in part on the information output by data engine 110 (including the left and right eye coordinates and distance 124 of viewer 122 from display 114), graphics engine 112 may define, for the identified 3D objects, model matrices (which specify where the objects are in space relative to viewer 122 using a model for each of the objects), view matrices (which specify, relative to a tracking camera or image sensor in display 114 (such as a CCD or a CMOS image sensor), the location and/or gaze direction of the eyes of viewer 122), and projection or frustum matrices (which specify what is visible to the eyes of viewer 122). These model, view and frustum matrices may be used by graphics engine 112 to render images of the 3D objects. For a given eye, the rendered image may provide a 2.5D monoscopic projection view on display 114. By sequentially or spatially displaying left-eye and right-eye images that include image parallax (i.e., stereoscopic images), 3D information may be presented on display 114. These images may be appropriately scaled or sized so that the images match the physical parameters of the viewing geometry (including the position of viewer 122 and size 126 of the display 114). This may facilitate the holographic effect for viewer 122. In addition, the left-eye and the right-eye images may be displayed at a monoscopic frequency of at least 30 Hz. Note that this frequency may be large enough to avoid flicker even in ambient lighting and may be sufficient for viewer 122 to fuse the images to perceive stereopsis and motion.

Moreover, the one or more optional position sensors 116 (which may be separate from or integrated into display 114, and which may be spatially offset from each other) may dynamically track movement of the head or eyes of viewer 122 with up to six degrees of freedom, and this head-tracking (or eye-tracking) information (e.g., the positions of the eyes of viewer 122 relative to display 114) may be used by graphics engine 112 to update the view and frustum matrices and, thus, the rendered left-eye and right-eye images. In this way, the rendered images may be optimal from the viewer perspective and may include motion parallax. In some embodiments, the one or more optional position sensor(s) 116 optionally dynamically track the gaze direction of viewer 122 (such as where viewer 122 is looking). By tracking where viewer 122 is looking, graphics engine 112 may include foveated imaging when rendering images, which can provide additional depth perception. For example, the transfer functions defined by data engine 110 may be used to modify the rendering of voxels in a 3D image (such as the transparency of the voxels) based at least in part on the focal plane of viewer 122.

Furthermore, tracking engine 118 may dynamically track 3D interaction of viewer 122 with a hand or finger of viewer 122, or an optional physical interaction tool 120 (such as a stylus, a mouse or a touch pad that viewer 122 uses to interact with one or more of the displayed 3D objects), with up to six degrees of freedom. For example, viewer 122 can grasp an object and interact with it using their hand, finger and/or optional interaction tool 120. The detected interaction information provided by tracking engine 118 may be used by graphics engine 112 to update the view and frustum matrices and, thus, the rendered left-eye and right-eye images. In this way, the rendered images may update the perspective based at least in part on interaction of viewer 122 with one or more of the displayed 3D objects using their hand, finger and/or the interaction tool (and, thus, may provide prehension), which may facilitate hand-eye coordination of viewer 122.

Alternatively or additionally, as described further below with reference to FIGS. 12-14, tracking engine 118 may use one or more images captured by the one or more optional position sensors 116 to determine absolute motion of viewer 122 based at least in part on an anatomical feature having a predefined or predetermined size to determine absolute motion of viewer 122 along a direction between viewer 122 and, e.g., display 114. For example, the anatomical feature may be an interpupillary distance (ipd), such as the ipd associated with viewer 122 or a group of individuals (in which case the ipd may be an average or mean ipd). More generally, the anatomical feature may include another anatomical feature having the predefined or predetermined size or dimension for viewer 122 or the group of individuals. In some embodiments, the offset positions of and/or a spacing 128 between the one or more optional position sensors 116 are predefined or predetermined, which allows the absolute motion in a plane perpendicular to the direction to be determined. Consequently, using the anatomical feature as a reference and the offset positions of the one or more optional position sensors 116, tracking engine 118 can determine absolute motion of viewer 122 in 3D. By dynamically tracking the absolute motion of viewer 122, tracking engine 118 may allow viewer 122 to have quantitative virtual haptic interaction with one or more of the displayed 3D objects. As with optional interaction tool 120, the detected interaction information provided by tracking engine 118 may be used by graphics engine 112 to update the view and frustum matrices and, thus, the rendered left-eye and right-eye images. In this way, the rendered images may update the perspective based at least in part on interaction of viewer 122 with one or more of the displayed 3D objects using, e.g., motion of one or more digits, a hand and/or an arm (and, thus, may provide prehension), which may facilitate hand-eye coordination of viewer 122.

By using image parallax, motion parallax and prehension, graphical system 100 may provide cues that the human brain uses to understand the 3D world. In particular, the image parallax triggers stereopsis, while the motion parallax can enable the viewer to fuse stereoscopic images with greater depth. In addition, the kinesthetic (sensory) input associated with the prehension in conjunction with the stereopsis may provide an intuitive feedback loop between the mind, eyes and hand of viewer 122 (i.e., the rich holographic experience).

Note that the one or more optional position sensors 116 may use a wide variety of techniques to track the locations of the eyes of viewer 122 and/or where viewer 122 is looking (such as a general direction relative to display 114). For example, viewer 122 may be provided glasses with reflecting surfaces (such as five reflecting surfaces), and infrared light reflected off of these surfaces may be captured by cameras or image sensors (which may be integrated into or included in display 114). This may allow the 3D coordinates of the reflecting surfaces to be determined. In turn, these 3D coordinates may specify the location and/or the viewing direction of the eyes of viewer 122, and can be used to track head movement. However, in some embodiments the ability to determine the absolute motion using the images captured using the one or more optional position sensors 116 and based at least in part on the anatomical feature may eliminate the need for viewer 122 to wear special glasses when using graphical system 100, such as glasses having the reflecting surfaces or glasses with a known or predefined ipd. Alternatively or additionally, stereoscopic triangulation may be used, such as Leap (from Leap Motion, Inc. of San Francisco, Calif.). For example, two (left/right) camera views of the face of viewer 122 may be used to estimate what viewer 122 is looking at. In particular, image processing of at least two camera views or images may allow the 3D coordinates of the eyes of viewer 122 to be determined. Another technique for tracking head motion may include sensors (such as magnetic sensors) in the glasses that allow the position of the glasses to be tracked. More generally, a gyroscope, electromagnetic tracking (such as that offered by Northern Digital, Inc. of Ontario, Canada), a local positioning system and/or a time of flight technique may be used to track the head position of viewer 122, such as Kinect (from Microsoft Corporation of Redmond, Wash.). In the discussion that follows, cameras or image sensors in display 114 are used as an illustrative example of a technique for tracking the location and/or gaze direction of the eyes of viewer 122.

Furthermore, instead of or in additional to optional physical interaction tool 120, in some embodiments viewer 122 may interact with displayed objects by using gestures in space (such as by moving one or more fingers on one or more of their hands). For example, a time of flight technique may be used (such as Kinect) and/or stereoscopic triangulation may be used (such as Leap). More generally, the position or motion of optional physical interaction tool 120 may be determined: optically, using magnetic sensors, using electromagnetic tracking, using a gyroscope, using stereoscopic triangulation and/or using a local positioning system.

Note that optional physical interaction tool 120 may provide improved accuracy and/or spatial control for viewer 122 (such as a surgeon) when interacting with the displayed objects.

Additionally, a wide variety of displays and display technologies may be used for display 114. In an exemplary embodiment, display 114 integrates the one or more optional position sensors 116. For example, display 114 may be provided by Infinite Z, Inc. (of Mountain View, Calif.) or Leonar3do International, Inc. (of Herceghalom, Hungary). Display 114 may include: a cathode ray tube, a liquid crystal display, a plasma display, a projection display, a holographic display, an organic light-emitting-diode display, an electronic paper display, a ferroelectric liquid display, a flexible display, a head-mounted display, a retinal scan display, and/or another type of display. In an exemplary embodiment, display 114 is a 2D display. However, in embodiments where display includes a holographic display, instead of sequentially (and alternately) displaying left-eye and right-eye images, at a given time a given pair of images (left-eye and right-eye) may concurrently displayed by display 114 or the information in the given pair of images may be concurrently displayed by display 114. Thus, display 114 may be able to display magnitude and/or phase information.

Image Processing and Rendering Operations

Graphics engine 112 may implement a vertex-graphics-rendering process in which 3D vertices define the corners or intersections of voxels and, more generally, geometric shapes in the input data. In an exemplary embodiment, graphics engine 112 uses a right-handed coordinate system. Graphics engine 112 may use physical inputs (such as the position of the eyes of viewer 122) and predefined parameters (such as those describing size 126 of display 114 in FIG. 1 and the viewing geometry) to define the virtual space based at least in part on matrices. Note that graphics engine 112 ‘returns’ to the physical space when the left-eye and right-eye images are rendered based at least in part on the matrices in the virtual space.

In the virtual space, 3D objects may each be represented by a 4×4 matrix with an origin position, a scale and an orientation. These objects may depict images, 3D volumes, 3D surfaces, meshes, lines or points in the input data. For computational simplicity, all the vertices may be treated as three-dimensional homogeneous vertices that include four coordinates, three geometric coordinates (x, y, and z) and a scale w. These four coordinates may define a 4×1 column vector (x, y, z, w)^(T). Note that: if w equals one, then the vector (x, y, z, 1) is a position in space; if w equals zero, then the vector (x, y, z, 0) is a position in a direction; and if w is greater than zero, then the homogeneous vertex (x, y, z, w)^(T) corresponds to the 3D point (x/w, y/w, z/w)^(T).

Using homogeneous coordinates, a vertex array can represent a 3D object. In particular, an object matrix M may initially be represented as

$\begin{bmatrix} {m0} & {m4} & {m8} & {m\; 12} \\ {m\; 1} & {m5} & {m9} & {m\; 13} \\ {m2} & {m6} & {m\; 10} & {m\; 14} \\ {m3} & {m7} & {m\; 11} & {m\; 15} \end{bmatrix},$ where, by default, (m0, m1, m2) may be the +x axis (left) vector (1, 0, 0), (m4, m5, m6) may be the +y axis (up) vector (0, 1, 0), (m8, m9, m10) may be the +z axis (forward) vector (0, 0, 1), m3, m7, and m11 may define the relative scale of these vectors along these axes, m12, m13, m14 specify the position of a camera or an image sensor that tracks the positions of the eyes of viewer 122, and m15 may be one.

By applying a rotation operation (R), a translation operation (T) and a scaling operation (S) across the vertex array of an object (i.e., to all of its (x, y, z, w) vectors), the object can be modified in the virtual space. For example, these operations may be used to change the position of the object based at least in part on where viewer 122 is looking, and to modify the dimensions or scale of the object so that the size and proportions of the object are accurate. In particular, a transformed vector may be determined using S·R·T·I ₀, where I₀ is an initial vector in the virtual space. Note that, in a right-handed coordinate system, a rotation a about the x axis (Rx), a rotation a about the y axis (Ry) and a rotation a about the z axis (Rz), respectively, can be represented as

${{Rx} = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & {\cos(a)} & {- {\sin(a)}} & 0 \\ 0 & {\sin(a)} & {\cos(a)} & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}},{{Ry} = {\begin{bmatrix} {\cos(a)} & 0 & {\sin(a)} & 0 \\ 0 & 1 & 0 & 0 \\ {- {\sin(a)}} & 0 & {\cos(a)} & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}\mspace{14mu}{and}}}$ ${Rz} = {\begin{bmatrix} {\cos(a)} & {- {\sin(a)}} & 0 & 0 \\ {\sin(a)} & {\cos(a)} & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}.}$ Similarly, a translation by (x, y, z) can be represented as

${T = \begin{bmatrix} 1 & 0 & 0 & x \\ 0 & 1 & 0 & y \\ 0 & 0 & 1 & z \\ 0 & 0 & 0 & 1 \end{bmatrix}},$ a non-uniform scaling by s_(x) along the x axis, s_(y) along the y axis and s_(z) along the z axis can be represented as

$S = \begin{bmatrix} s_{x} & 0 & 0 & 0 \\ 0 & s_{y} & 0 & 0 \\ 0 & 0 & s_{z} & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}$ and a uniform scaling s can be represented as

$S = {\begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & s \end{bmatrix}.}$ Moreover, note that an arbitrary combination of rotation, translation and scaling matrices is sometimes referred to as a ‘transformation matrix’ Tf. Therefore, after applying the rotation, translation and scaling matrices, the model matrix M may become a model transformation matrix Mt. This transformation matrix may include the position of the object (tx, ty, tz, 1)^(T), the scale s of the object and/or the direction R of the object [(r1, r2, r3)^(T), (r4, r5, r6)^(T), (r7, r8, r9)^(T)]. Thus, the transformation matrix Mt may be generated by: translating the object to its origin position (tx, ty, tz, 1)^(T); rotating the object by R; and/or scaling the object by s. For example, with uniform scaling the transformation matrix Mt may be represented as

$\begin{bmatrix} {r\; 1} & {r4} & {r7} & {tx} \\ {r2} & {r5} & {r8} & {ty} \\ {r3} & {r6} & {r9} & {tz} \\ 0 & 0 & 0 & s \end{bmatrix}.$

In addition to the model matrices for the objects, graphics engine 112 may also implement so-called ‘views’ and ‘perspective projections,’ which may each be represented using homogeneous 4×4 matrices. The view may specify the position and/or viewing target (or gaze direction) of viewer 122 (and, thus, may specify where the objects are in space relative to viewer 122). In the virtual space, a given view matrix V (for the left eye or the right eye) may be based at least in part on the position of a camera or an image sensor that tracks the positions of the eyes of viewer 122, the location the camera is targeting, and the direction of the unit vectors (i.e., which way is up), for example, using a right-hand coordinate system. In the physical space, the view matrices V may be further based at least in part on the eye positions of viewer 122, the direction of the unit vectors and/or where viewer 122 is looking. In an exemplary embodiment, the view matrices V are created by specifying the position of the camera and the eyes of viewer 122, specifying the target coordinate of the camera and the target coordinate of the eyes of viewer 122, and a vector specifying the normalized +y axis (which may be the ‘up’ direction in a right-handed coordinate system). For example, the target coordinate may be the location that the camera (or the eyes of viewer 122) is pointed, such as the center of display 114.

In an exemplary embodiment, the given view matrix V is determined by constructing a rotation matrix Rv. In this rotation matrix, the ‘z axis’ may be defined as the normal from given camera position (px, py, pz)^(T) minus the target position, i.e., (z1,z2,z3)^(T)=normal[(px,py,pz)^(T)−(tx,ty,tz)^(T)]. Then, the ‘x axis’ may be calculated as the normal of the cross product of the ‘z axis’ and normalized +y axis (which may represent the ‘up’ direction), i.e., (x1,x2,x3)^(T)=normal[crosss[(z1,z2,z3)^(T),(ux,uy,uz)^(T)]]. Moreover, the un-normalized y axis may be calculated as the cross product of the ‘z axis’ and ‘x axis,’ i.e., (y1,y2,y3)^(T)=normal[(z1,z2,z3)^(T)(x1,x2,x3)^(T)]. Thus, the complete 4×4 rotation matrix Rv for use in determining the given view matrix may be

$\begin{bmatrix} {x\; 1} & {y\; 1} & {z\; 1} & 0 \\ {x2} & {y2} & {z2} & 0 \\ {x3} & {y3} & {z3} & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}.$

Next, the given view matrix V may also be determined by constructing a translation matrix Tv based at least in part on the position of one of the eyes of viewer 122 (tx, ty, tz). In particular, the translation matrix Tv may be represented as

${Tv} = {\begin{bmatrix} 1 & 0 & 0 & {tx} \\ 0 & 1 & 0 & {ty} \\ 0 & 0 & 1 & {tz} \\ 0 & 0 & 0 & 1 \end{bmatrix}.}$

Using the rotation matrix Rv and the translation matrix Tv, the inverse of the given view matrix V⁻¹ may be determined as

V⁻¹ = Rv ⋅ Tv  or $V^{1} = {\begin{bmatrix} {x\; 1} & {y\; 1} & {z\; 1} & {tx} \\ {x2} & {y2} & {z2} & {ty} \\ {x3} & {y3} & {z3} & {tz} \\ 0 & 0 & 0 & 1 \end{bmatrix}.}$

The perspective projection may use left-eye and right-eye frustums F to define how the view volume is projected on to a 2-dimensional (2D) plane (e.g., the viewing plane, such as display 114) and on to the eyes of viewer 122 (which may specify what is visible to the eyes of viewer 122). In the virtual space, a given frustum (for the left eye or the right eye) may be the portion of the 3D space (and the 3D objects it contains) that may appear or be projected as 2D left-eye or right-eye images on display 114. In the physical space, the given frustum may be the viewing volume that defines how the 3D objects are projected on to one of the eyes of viewer 122 to produce retinal images of the 3D objects that will be perceived (i.e., the given frustum specifies what one of the eyes of viewer 122 sees or observes when viewing display 114). Note that the perspective projection may project all points into a single point (an eye of viewer 122). As a consequence, the two perspective projections, one for the left eye of the viewer and another for the right eye of the viewer, are respectively used by graphics engine 112 when determining the left-eye image and the right-eye image. In general, for an arbitrary head position of viewer 122, the projection matrices or frustums for the left eye and the right eye are different from each other and are asymmetric.

FIG. 2 presents a drawing illustrating a frustum 200 for a vertical display in graphical system 100. This frustum includes: a near plane (or surface), a far (or back) plane, a left plane, a right plane, a top plane and a bottom plane. In this example, the near plane is defined at z equal to n. Moreover, the vertices of the near plane are at x equal to l and r (for, respectively, the left and right planes) and y equal to t and b (for, respectively, the top and bottom planes). The vertices of the far f plane can be calculated based at least in part on the ratio of similar triangles as

${\frac{f}{n} = {\frac{{left}_{far}}{l} = \frac{l_{far}}{l}}},$ which can be re-arranged as

$l_{far} = {\left( \frac{f}{n} \right) \cdot {l.}}$ By defining a perspective projection factor P as

$\frac{f}{n}$ this can be re-expressed as I _(far) =P·l. As shown in FIG. 2, the coordinates of the vertices at the far plane in frustum 200 can be expressed in terms of the coordinates at the near plane and the perspective projection factor P. Moreover, frustum (F) 200 can be expressed as a 4×4 matrix

$F = {\begin{bmatrix} \frac{2n}{r - l} & 0 & \frac{r + l}{r - l} & 0 \\ 0 & \frac{2n}{t - b} & \frac{t + b}{t - b} & 0 \\ 0 & 0 & \frac{- \left( {f + n} \right)}{f - n} & \frac{{- 2}{fn}}{f - n} \\ 0 & 0 & {- 1} & 0 \end{bmatrix}.}$

In an exemplary embodiment, when the head position of viewer 122 in FIG. 1 is not tracked (i.e., when motion parallax is not included), the near plane may be coincident with display 114 in FIG. 1. (In the discussion that follows, the plane of display 114 in FIG. 1 is sometimes referred to as the ‘viewing plane.’) In this case, frustum 200 extends behind the plane of display 114 (FIG. 1). Because viewer perception of stereopsis is high between 15 and 65 cm, and eventually decays at larger distances away from viewer 122 (FIG. 1), the far plane may define a practical limit to the number of vertices that are computed by graphics engine 112 (FIG. 1). For example, f may be twice n. In addition, as described further below, by defining a finite space, the left-eye and right-eye images may be scaled to enhance or maximize the depth acuity resolved by viewer 122 (FIG. 1) for a given spatial resolution in the input data and the viewing geometry in graphical system 100 in FIG. 1 (which is sometimes referred to as ‘stereopsis scaling’ or ‘stereo-acuity scaling’).

While the preceding example of the frustum used a vertical display, in other embodiments display 114 (FIG. 1) may be horizontal or may be at an incline. For example, in surgical applications, display 114 (FIG. 1) may be placed on the floor. As shown in FIGS. 3 and 4, which present drawings illustrating frustums 300 (FIG. 3) and 400, in these configurations the frustums are rotated.

When the position of the head or the eyes of viewer 122 (FIG. 1) are tracked in graphical system 100 in FIG. 1 (so that the rendered left-eye and right-eye images can be modified accordingly), the viewing plane may be placed approximately in the middle of the frustums to provide back-and-forth spatial margin. This is illustrated by viewing planes 310 (FIG. 3) and 410. Moreover, as shown in FIG. 3, the coordinates of the vertices of viewing plane 310 may be left (−i), right (+i), top (+j), bottom (−j), and the z (depth) coordinate may be zero so that the near plane is at z coordinate d and the eyes of viewer 122 (FIG. 1) are at z coordinate k. (In some embodiments, the near plane is defined at the same z coordinate as the eyes of viewer 122 in FIG. 1.) Based at least in part on these coordinates, the far-plane coordinates can be determined using the perspective projection factor P.

Note that, while the preceding example defined the frustum based at least in part on the distance z from viewer 122 (FIG. 1) to display 114 (FIG. 1), in embodiments where the one or more optional position sensors 116 (FIG. 1) track the gaze direction of viewer 122 (FIG. 1), the frustum may be based at least in part on the focal point of viewer (FIG. 1). Furthermore, while a viewing plane was used as a reference in the preceding discussion, in some embodiments multiple local planes (such as a set of tiled planes) at different distances z from viewer 122 (FIG. 1) to display 114 (FIG. 1) are used.

By multiplying the left-eye (or right-eye) frustum F by the corresponding left-eye (or right-eye) view matrix V and the model transformation matrix Mt, a 2D projection in the viewing plane of a 3D object can be determined for rendering as a given left-eye (or right-eye) image. These operations may be repeated for the other image to provide stereoscopic viewing. As described further below with reference to FIG. 6, note that when rendering these 2D projections, a surface may be extracted for a collection of voxels or a volume rending may be made based at least in part on ray tracing.

In order to enhance or maximize the depth acuity resolved by viewer 122 in FIG. 1 (and, thus, to provide high-resolution depth perception), the graphics engine 112 (FIG. 1) may ensure that the geometric disparity between the left-eye and the right-eye images remains between a minimum value that viewer 122 (FIG. 1) can perceive (which is computed below) and a maximum value (beyond which the human mind merges the left-eye and the right-eye images and stereopsis is not perceived). In principle, graphics engine 112 (FIG. 1) may scale the objects in the image(s) presented to viewer 122 (FIG. 1) in proportion to their focal distance z (which is sometimes referred to as a ‘geometric perspective’), or may have free control of the focal distance of viewer 122 (FIG. 1) in order to accommodate all the objects viewer 122 (FIG. 1) wants to observe. The latter option is what happens in the real world. For example, when an individual focuses on a desk and, thus, has accommodated to a short focal distance, he or she can resolve depth with a precision of around 1 mm. However, when the individual is outside and accommodates to a longer focal distance, he or she can resolve depth with a precision of around 8 cm.

In practice, because graphical system 100 (FIG. 1) implements stereoscopic viewing (which provides depth information), it is not necessary to implement geometric perspective (although, in some embodiments, geometric perspective is used in graphical system 100 in FIG. 1 addition to image parallax). Instead, in graphical system 100 (FIG. 1) objects may be scaled in proportion to the distance z of viewer 122 (FIG. 1) from display 114 (FIG. 1). As described previously, a range of distances z may occur and, based at least in part on the head-tracking information, this range may be used to create the frustum. In particular, after determining the 2D projection, graphics engine 112 (FIG. 1) may scale a given object in the image(s) presented to the viewer based at least in part on based at least in part on the viewing geometry (including the distance z) and a given spatial resolution in the input data (such as the voxel spacing, the discrete spacing between image slices, and/or, more generally, the discrete spatial sampling in the input data) in order to enhance (and, ideally, to maximize or optimize) the depth acuity. This stereopsis scaling may allow viewer 122 (FIG. 1) to perceive depth information in the left-eye and the right-eye images more readily, and in less time and with less effort (or eye strain) for discretely sampled data. As such, the stereopsis scaling may significantly improve the viewer experience and may improve the ability of viewer 122 (FIG. 1) to perceive 3D information when viewing the left-eye and the right-eye images provided by graphical system 100 (FIG. 1).

Note that the stereopsis scaling may not be typically performed in computer-aided design systems because these approaches are often model-based which allows the resulting images to readily incorporate geometric perspective for an arbitrary-sized display. In addition, stereopsis scaling is typically not performed in 2.5D graphical systems because these approaches often include markers having a predefined size in the resulting images as comparative references.

FIG. 5 presents a drawing illustrating the calculation of the stereopsis scaling for a given spatial resolution in the input data and a given viewing geometry. In this drawing, ipd is the interpupillary distance, z is the distance to the focal point of viewer 122 (FIG. 1) (which, as noted previously, may be replaced by the distance between viewer 122 and display 114 in FIG. 1 in embodiments where the head position of viewer 122 is tracked), dz is the delta in the z (depth) position of an object to the focal point, L is the left eye-position and R is the right-eye position. Moreover, the geometric disparity δγ may be defined based at least in part on the difference in the angles α and β times L, i.e., δγ=L·(α−β). This can be re-expressed as

${\delta\;\gamma} = {\frac{({ipd}) \cdot ({dz})}{z^{2} + {z \cdot ({dz})}}.}$ If z is 400 mm, the ipd is 65 mm (on average) and dz is 1 mm, the geometric disparity δγ equals 4.052×10⁻⁴ radians or 82.506 arcseconds. As noted previously, viewers have minimum and maximum values of the geometric disparity δγ that they can perceive. For a given distance z (which, as noted previously, may be determined by tracking the head position of viewer 122 in FIG. 1), the scale of the objects in the left-eye image and the right-eye image can be selected to enhance or maximize the depth acuity based at least in part on

$\begin{matrix} {{{dz} = \frac{{\delta\gamma} \cdot \left( z^{2} \right)}{ipd}},} & (1) \end{matrix}$ which defines the minimum dz needed for stereopsis. For example, in the case of medical images, dz may be the voxel spacing. (Note that, for an x spacing dx, a y spacing dy and a z spacing dz, the voxel size dv may be defined as dv ² =dx ² +dy ² +dz ².) Moreover, the minimum value of the geometric disparity δγ (which triggers stereopsis and defines the depth acuity) may be 2-10 arcseconds (which, for 10 arcseconds, is 4.486×10⁻⁵ radians) and the maximum value may be 600 arcseconds (which, for 100 arcseconds, is 4.486×10⁻⁴ radians). If the average distance z from the viewer to display 114 (FIG. 1) is 0.5 m (an extremum of the 0.5-1.5 m range over which the depth acuity is a linear function of distance z), the ipd equals 65 mm and the minimum value of the geometric disparity δγ is 10 arcseconds, the minimum dz_(min) in Eqn. 1 to maintain optimal depth acuity is 0.186 mm. Similarly, if the average distance z is 0.5 m, the ipd equals 65 mm and the maximum value of the geometric disparity δγ is 100 arcseconds, the maximum dz_(max) in Eqn. 1 to maintain optimal depth acuity is 1.86 mm. Defining the minimum scale s_(min) as

$s_{\min} = \frac{dz_{\min}}{dv}$ and the maximum scale s_(max) as

${s_{\max} = \frac{dz_{\max}}{dv}},$ and for an isometric 1 mm voxel resolution, the minimum scale s_(min) is 0.186 and the maximum scale s_(max) is 1.86. Therefore, in this example the objects in left-eye and the right-eye images can be scaled by a factor between 0.186 and 1.86 (depending on the average tracked distance z) to optimize the depth acuity. Note that, in embodiments where the one or more optional position sensors 116 (FIG. 1) track the gaze direction of viewer 122 (FIG. 1), the stereopsis scaling may be varied based at least in part on the focal point of viewer 122 (FIG. 1) instead of the distance z from viewer 122 (FIG. 1) to display 114 (FIG. 1).

While the preceding example illustrated the stereopsis scaling based at least in part on an average δγ and an average ipd, in some embodiments the stereopsis scaling is based at least in part on an individual's δγ and/or ipd. For example, viewer 122 (FIG. 1) may provide either or both of these values to graphical system 100 (FIG. 1). Alternatively, graphical system 100 (FIG. 1) may measure the δγ and/or the ipd of viewer 122 (FIG. 1).

Graphical system 100 (FIG. 1) may also implement monoscopic depth cues in the rendered left-eye and right-eye images. These monoscopic depth cues may provide a priori depth information based at least in part on the experience of viewer 122 (FIG. 1). Note that the monoscopic depth cues may complement the effect of image parallax and motion parallax in triggering stereopsis. In particular, the monoscopic depth cues may include: relative sizes/positions (or geometric perspective), lighting, shading, occlusion, textural gradients, and/or depth cueing.

As noted previously, a geometric-perspective monoscopic depth cue (which is sometimes referred to as a ‘rectilinear perspective’ or a ‘photographic perspective’) may be based at least in part on the experience of viewer 122 (FIG. 1) that the size of the image of an object projected by the lens of the eye onto the retina is larger when the object is closer and is smaller when the object is further away. This reduced visibility of distant object (for example, by expanding outward from a focal point, which is related to the frustum) may define the relationship between foreground and background objects. If the geometric perspective is exaggerated, or if there are perspective cues such as lines receding to a vanishing point, the apparent depth of an image may be enhanced, which may make the image easier to view. While geometric perspective is not used in an exemplary embodiment of graphical system 100 (FIG. 1), in other embodiments geometric perspective may be used to complement the stereopsis scaling because it also enhances the stereopsis. For example, the frustum may be used to scale objects based at least in part on their distance z from viewer 122 (FIG. 1).

A lighting monoscopic depth cue may be based at least in part on the experience of viewer 122 (FIG. 1) that bright objects or objects with bright colors appear to be nearer than dim or darkly colored objects. In addition, the relative positions of proximate objects may be perceived by viewer 122 (FIG. 1) based at least in part on how light goes through the presented scene (e.g., solid objects versus non-solid objects). This monoscopic depth cue may be implemented by defining the position of a light source, defining transfer functions of the objects, and using the frustum. A similar monoscopic depth cue is depth cueing, in which the intensity of an object is proportional to the distance from viewer 122 in FIG. 1 (which may also be implemented using the frustum).

Shading may provide a related monoscopic depth cue because shadows cast by an object can make the object appear to be resting on a surface. Note that both lighting and shading may be dependent on a priori knowledge of viewer 122 (FIG. 1) because they involve viewer 122 (FIG. 1) understanding the light-source position (or the direction of the light) and how shadows in the scene will vary based at least in part on the light-source position.

Occlusion (or interposition) may provide a monoscopic depth cue based at least in part on the experience of viewer 122 (FIG. 1) that objects that are in front of others will occlude the objects that are behind them. Once again, this effect may be dependent on a priori knowledge of viewer 122 (FIG. 1). Note that lighting, shading and occlusion may also define and interact with motion parallax based at least in part on how objects are positioned relative to one another as viewer 122 (FIG. 1) moves relative to display 114 (FIG. 1). For example, the focal point of the light illuminating the object in a scene may change with motion and this change may be reflected in the lighting and the shading (similar to what occurs when an individual is moving in sunlight). Furthermore, the occlusion may be varied in a manner that is consistent with motion of viewer 122 (FIG. 1).

As described previously, the transfer functions that may be used to implement occlusion may be defined in graphical system 100 (FIG. 1) prior to graphics engine 112 in FIG. 1 (for example, by data engine 110 in FIG. 1). The transfer functions for objects may be used to modify the greyscale intensity of a given object after the projection on to the 2D viewing plane. In particular, during the projection on to the 2D viewing plane the average, maximum or minimum greyscale intensity projected into a given voxel may be used, and then may be modified by one or more transfer functions. For example, three sequential voxels in depth may have intensities of 50 to 100, −50 to 50, and −1000 to −50. These intensities may be modified according to a transfer function in which: greyscale values between 50 and 100 may have 0% intensity; greyscale values between −50 to 50 may have 100% intensity; and greyscale values between −1000 to −50 may have 50% intensity. In this way, the perspective may emphasize the second voxel and, to a lesser extent, the third voxel. In another example, transfer functions may be used to illustrate blood so that blood vessels appear filled up in the stereoscopic images, or to hide blood so that blood vessels appear open in the stereoscopic images.

Textural gradients for certain surfaces may also provide a monoscopic depth cue based at least in part on the experience of viewer 122 (FIG. 1) that the texture of a material in an object, like a grassy lawn or the tweed of a jacket, is more apparent when the object is closer. Therefore, variation in the perceived texture of a surface may allow viewer 122 (FIG. 1) to determine near versus far surfaces.

Computer System

FIG. 6 presents a drawing of a computer system 600 that implements at least a portion of graphical system 100 (FIG. 1). This computer system includes one or more processing units or processors 610, a communication interface 612, a user interface 614, and one or more signal lines 622 coupling these components together. Note that the one or more processors 610 may support parallel processing and/or multi-threaded operation, the communication interface 612 may have a persistent communication connection, and the one or more signal lines 622 may constitute a communication bus. In some embodiments, the one or more processors 610 include a Graphics Processing Unit. Moreover, the user interface 614 may include: a display 114, a keyboard 618, and/or an optional interaction tool 120 (such as a stylus, a pointer a mouse and/or a sensor or module that detects displacement of one or more of the user's fingers and/or hands).

Memory 624 in computer system 600 may include volatile memory and/or non-volatile memory. More specifically, memory 624 may include: ROM, RAM, EPROM, EEPROM, flash memory, one or more smart cards, one or more magnetic disc storage devices, and/or one or more optical storage devices. Memory 624 may store an operating system 626 that includes procedures (or a set of instructions) for handling various basic system services for performing hardware-dependent tasks. Memory 624 may also store procedures (or a set of instructions) in a communication module 628. These communication procedures may be used for communicating with one or more computers and/or servers, including computers and/or servers that are remotely located with respect to computer system 600.

Memory 624 may also include program instructions (or sets of instructions), including: initialization module 630 (or a set of instructions), data module 632 (or a set of instructions) corresponding to data engine 110 (FIG. 1), graphics module 634 (or a set of instructions) corresponding to graphics engine 112 (FIG. 1), tracking module 636 (or a set of instructions) corresponding to tracking engine 118 (FIG. 1), and/or encryption module 638 (or a set of instructions). Note that one or more of the program instructions (or sets of instructions) may constitute a computer-program mechanism. The program instructions may be used to perform or implement: initialization, object identification and segmentation, virtual instruments, prehension and motion parallax, as well as the image processing rendering operations described previously.

Initialization

During operation, initialization module 630 may define parameters for image parallax and motion parallax. In particular, initialization module 630 may initialize a position of a camera or an image sensor in display 114 in a monoscopic view matrix by setting a position equal to the offset d between the viewing plane and the near plane of the frustum. (Alternatively, there may be a camera or an image sensor in optional interaction tool 120 that can be used to define the perspective. This may be useful in surgical planning.) For example, the offset d may be 1 ft or 0.3 m. Moreover, the focal point (0, 0, 0) may be defined as the center of the (x, y, z) plane and the +y axis may be defined as the ‘up’ direction.

Furthermore, the near and far planes in the frustum may be defined relative to the camera (for example, the near plane may be at 0.1 m and the far plane may be between 1.5-10 m), the right and left planes may be specified by the width in size 126 (FIG. 1) of display 114, and the top and bottom planes may be specified by the height in size 126 (FIG. 1) of display 114. Initialization module 630 may also define the interpupillary distance ipd equal to a value between 62 and 65 mm (in general, the ipd may vary between 55 and 72 mm). Additionally, initialization module 630 may define the display rotation angle θ (for example, θ may be 30°, where horizontal in 0°) and may initialize a system timer (sT) as well as tracking module 636 (which monitors the head position of viewer 122 in FIG. 1, the position of optional interaction tool 120, the position of one or more digits, a hand or an arm of viewer 122 in FIG. 1, and which may monitor the gaze direction of viewer 122).

Then, initialization module 630 may perform prehension initialization. In particular, start and end points of optional interaction tool 120 and/or the one or more digits, the hand or the arm of viewer 122 in FIG. 1 may be defined. The start point may be at (0, 0, 0) and the end point may be at (0, 0, tool length), where tool length may be 15 cm.

Next, the current (prehension) position of optional interaction tool 120 and/or the one or more digits, the hand or the arm of viewer 122 in FIG. 1 (PresPh) may be defined, with a corresponding model matrix defined as an identity matrix. Moreover, a past (prehension) position of optional interaction tool 120 and/or the one or more digits, the hand or the arm of viewer 122 in FIG. 1 (PastPh) may be defined with a corresponding model matrix defined as an identity matrix. Note that prehension history of position and orientation of optional interaction tool 120 and/or the one or more digits, the hand or the arm of viewer 122 in FIG. 1 can be used to provide a video of optional interaction tool 120 and/or the one or more digits, the hand or the arm movements, which may be useful in surgical planning.

In addition, initialization module 630 may initialize monoscopic depth cues. In some embodiments, a plane 25-30% larger than the area of display 114 is used to avoid edge effects and to facilitate the stereopsis scaling described previously. In some embodiments, the stereopsis scaling is adapted for a particular viewer based at least in part on factors such as: age, the wavelength of light in display 114, sex, the display intensity, etc. Moreover, the monoscopic depth-cue perspective may be set to the horizontal plane (0, 0, 0), and the monoscopic depth-cue lighting may be defined at the same position and direction as the camera in the view matrix.

Object Identification and Segmentation

After the initialization is complete, data module 632 and graphics module 634 may define or may receive information from the user specifying: segments 642, optional transfer functions 644, reference features 646 and objects 648 in data 640. These operations are illustrated in FIG. 7, which presents a drawing illustrating a pipeline 700 performed by computer system 600 in FIG. 6. In particular, data 640 in FIG. 6 may include a DICOM directory with multiple DICOM images (i.e., source image data from one or more imaging devices), such as a series of 2D images that together depict a volumetric space that contains the anatomy of interest. Data module 632 in FIG. 6 may parse DICOM labels or tags associated with the DICOM images so that a number of images in the series are extracted along with their associated origin coordinate, orientation and voxel x, y and z spacing. (Note that, in general, data 640 may be isometric or non-isometric, i.e., dx, dy and dz may be the same or may be different from each other.) Then, each image of the series is loaded according to its series number and compiled as a single 3D collection of voxels, which includes one of more 3D objects 648 in FIG. 6 (and is sometimes referred to as a ‘DICOM image object’ or a ‘clinical object’).

Next, data module 632 may dimensionally scale (as opposed to the stereopsis scaling) the DICOM image object. For example, data module 632 may scale all the x voxels by multiplying their spacing value by 0.001 to assure the dimensions are in millimeters. Similarly, data module 632 may scale all the y voxels and all the z voxels, respectively, by multiplying their spacing values by 0.001 to assure the dimensions are in millimeters. This dimensional scaling may ensure that the voxels have the correct dimensions for tracking and display.

Furthermore, data module 632 may map the DICOM image object on to a plane with its scaled dimensions (i.e., the number of x voxels and the number of y voxels) and may be assigned a model matrix with its original orientation and origin. In some embodiments, graphics engine 634 in FIG. 6 optionally displays a stack of images (which is sometimes referred to as a ‘DICOM image stack’) corresponding to the DICOM image object in the plane.

Subsequently, via iterative interaction with graphics engine 634 and/or the user, data module 632 may aggregate or define several object lists that are stored in reference features 646 in FIG. 6. These object lists may include arrays of objects 648 that specify a scene, virtual instruments (or ‘virtual instrument objects), or clinical objects (such as the DICOM image object), and may be used by graphics engine 634 to generate and render stereoscopic images (as described previously). A ‘scene’ includes 3D objects that delimit the visible open 3D space. For example, a scene may include a horizontal plane that defines the surface work plane on which all 3D objects in the DICOM image object are placed. Moreover, ‘virtual instruments’ may be a collection of 3D objects that define a specific way of interacting with any clinical target, clinical anatomy or clinical field. In particular, a virtual instrument includes: a ‘representation’ that is the basic 3D object elements (e.g., points, lines, planes) including a control variable; and an ‘instrument’ that implements the interaction operations based at least in part on its control variables to its assigned clinical target, clinical anatomy or clinical field. Note that a ‘clinical field’ may be a clinical object that defines a region within the DICOM image object that contains the anatomy of interest; ‘clinical anatomy’ may be a clinical object that defines the organ or tissue that is to be evaluated; and a ‘clinical target’ may be a clinical object that defines the region of interest of anatomy that is the candidate to be diagnosed or evaluated. (Clinical fields, clinical anatomy and clinical targets may be determined by the user and/or data module 632 during a segmentation process, which is described further below.) Note that, in some embodiments, a virtual instrument includes a software-extension of optional interaction tool 120 and/or an appendage of viewer 122 in FIG. 1 (such as one or more digits, a hand or an arm), which can perform specific interaction tasks or operations. Furthermore, note that the user: cannot interact with scenes; may only be able to interact with virtual instruments through their control variables; and may have free interaction with clinical objects.

During iterative interaction, data module 632 may perform image processing on the DICOM image object to identify different levels of organ or tissue of interest. In particular, for the clinical field, the DICOM image object may be processed to identify different tissue classes (such as organ segments, vessels, etc.) as binary 3D collections of voxels based at least in part on the voxel values, as well as the boundaries between them. In the discussion that follows, a probability-mapping technique is used to identify the tissue classes. However, in other embodiments, different techniques may be used, such as: a watershed technique, a region-growing-from-seeds technique, or a level-set technique.

In the probability-mapping technique, a probability map (P) is generated using a 3D image with the same size as one of the DICOM images. The values of P may be the (estimated) probability of voxels being inside, outside and at the edge of the organ of interest. For each voxel, P may be obtained by computing three (or more) probabilities of belonging to tissue classes of interest, such as: voxels inside the organ (tissue class w1), voxels outside the organ (tissue class w2), and voxels at the interface between organs (tissue class w3). For a given voxel, P may be determined from the maximum of these three probabilities. Note that each probability may be calculated using a cumulative distribution function, e.g.,

${{F\left( {x,x_{o},\gamma} \right)} = {{\frac{1}{\pi} \cdot {\arctan\left( \frac{x - x_{o}}{\gamma} \right)}} + \frac{1}{2}}},$ where x_(o) is the density of the tissue class, x is the density of the tested voxel, and γ is a scale parameter of the distribution or the half-width at half-maximum.

The voxels at the interface between the tissue classes may be calculated for a neighborhood of voxels as being part of tissue class w1 or tissue class w2, and then averaging the result. Pseudo-code for this calculation for an omni-directional configuration with 27 neighboring voxels is shown in Table 1.

TABLE 1 for each voxel (x, y, z) do  sum=0;  for i = −1 to 1 do   for j = −1 to 1 do    for k = −1 to 1 do     sum += P(w1j(x + i, y + j, z + k));     sum += P(w2j(x + i, y + j, z + k));    end;   end;  end;  P(w3j(x, y, z)) = sum/27; end

Additionally, during the iterative interaction data module 632 may perform image processing on the DICOM image object to identify the clinical anatomy. In particular, using the organ binary mask a ray-casting technique can be applied to generate a volume image of the organ of interest, such as the liver or another solid organ. Furthermore, using the boundary-voxel mask, a surface can be generated of the tissue using a marching-cube technique, such as the surface of a vessel (e.g., the large intestine or an artery). Note that other surfaces or ray-casting volumes can be generated from the segmented data.

In an exemplary embodiment, the determined clinical field may be the chest, the clinical anatomy may be the aorta, and the clinical target may be the aortic valve. Alternatively, the clinical field may be the abdomen, the clinical anatomy may be the colon, and the clinical target may be the one or more polyps.

After the image processing, data module 632 may perform the segmentation process (including data-structure processing and linking) to identify landmarks and region-of-interest parameters. The objective of the segmentation process is to identify functional regions of the clinical anatomy to be evaluated. This may be accomplished by an articulated model, which includes piecewise rigid parts for the anatomical segments coupled by joints, to represent the clinical anatomy. The resulting segments 642 in FIG. 6 may each include: a proximal point (S) location specified by the DICOM image-voxel index coordinate (i₁, j₁, k₁); a distal point (D) location specified by the DICOM image-voxel index coordinate (i₂, j₂, k₂); a central point (C) location specified by the DICOM image-voxel index coordinate (i₃, j₃, k₃), which may be the half point of the Euclidean distance between S and D; image-voxel index bounds (B) of the region of interest surrounding the central point including the proximal and distal points (i_(min), i_(max), j_(min), j_(max), k_(min), k_(max)); and the corresponding world x, y, z coordinates of the central point and the region bounds locations calculated by accounting for the x, y, z voxel spacing of the source DICOM image. In general, segments 642 may be determined using an interactive segmentation technique with the user and/or a computer-implemented segmentation technique.

In the interactive segmentation technique, the user may select or specify n voxel index locations from the clinical field, which may be used to define the central points (Cs). Then, a 3D Voronoi map (and, more generally, a Euclidean-distance map) may determine regions around each of the selected index locations. For each of the Voronoi regions and each of the n voxel indexes, data module 632 may obtain: the minimum voxel index along the x axis of the DICOM image (i_(min)); the maximum voxel index along the x axis of the DICOM image (i_(max)); the minimum voxel index along the y axis of the DICOM image (j_(min)); the maximum voxel index along they axis of the DICOM image (j_(max)); the minimum voxel index along the z axis of the DICOM image (k_(min)); and the maximum voxel index along the z axis of the DICOM image (k_(max)). Next, data module 632 may define: the proximal S point as i_(min), j_(min), k_(min); and the distal D point as i_(max), j_(max), k_(max). Moreover, data module 632 may generate a list of 3D objects (such as anatomical segments) of the clinical anatomy based at least in part on these values and may add these 3D objects to the object list of clinical objects in reference features 646 for use by graphics module 634.

Using the interactive or the computer-based segmentation technique, the surface of the colon may be a single object or may be sub-divided into six segments or more. Depending on the tortuosity of the colon, this calculation may involve up to 13 iterations in order to obtain segments with the desired aspect ratios.

Moreover, the articulated model may facilitate: fast extraction of regions of interest, reduced storage requirements (because anatomical features may be described using a subset of the DICOM images or annotations within the DICOM images), faster generating and rendering of True 3D stereoscopic images with motion parallax and/or prehension, and a lower cost for the graphical system.

Virtual Instruments

As described previously in the discussion of image processing and rendering operations, graphics module 634 may generate 3D stereoscopic images. Furthermore, prior to rendering these 3D stereoscopic images and providing them to display 114, stereopsis scaling may be performed to enhance or optimize the stereo acuity of the user based at least in part on the maximum and minimum scale factors (i.e., the range of scaling) that can be applied to the anatomical segments dz_(min) and dz_(max). During the rendering, once the anatomy has been adequately segmented and linked, graphics module 634 may also implement interaction using one or more virtual instruments. For example, a virtual instrument may allow the user to navigate the body parts, and to focus on and to evaluate a segment of an individual's anatomy, allowing the user to optimize workflow. In the discussion that follows, a given virtual instrument may include any of the features or operations described below. Thus, a given virtual instrument may include one or more of these features or operations, including a feature or operation that is included in the discussion of another virtual instrument.

Each virtual instrument includes: a ‘representation’ which is the basic object elements (points, lines, planes, other 3D objects, etc.) including a control variable; and an ‘instrument’ which implements the interaction operations based at least in part on its control variables to its assigned clinical target, clinical anatomy or clinical field. While a wide variety of virtual instruments can be defined (such as a pointer or a wedge), in the discussion that follows a dissection cut plane, a bookmark to a region of interest, a problem-solving tool that combines a 3D view with a 2D cross-section, and an ‘intuitive 2D’ approach that allows the viewer to scroll through an array of 2D images using stylus are used as illustrative examples.

For the cut-plane virtual instrument, the representation includes: an origin point (Origin) that defines an origin x_(o), y_(o), z_(o) position of the cut plane; point 1 that, in conjunction with the origin point, defines axis 1 (a₁) of the cut plane; and point 2 that, in conjunction with the origin point, defines axis 2 (a₂) of the cut plane. The normal to the cut plane points in the direction of the cross product of a₁ and a₂. Moreover, the center point (Center Point) is the control point of the cut plane. In particular, Center[x]=Origin[x _(o)]+0.5(a ₁[x]+a ₂[x]), Center[y]=Origin[y _(o)]+0.5(a ₁[y]+a ₂[y]), and Center[z]=Origin[z _(o)]+0.5(a ₁[z]+a ₂[z]).

The user can control the cut plane by interacting with the center point, and can translate and rotate the cut plane using optional interaction tool 120 and/or motion of one or more digits, a hand or an arm in FIG. 6. For example, the user can control a cut plane to uncover underlying anatomical features, thereby allowing the rest of the anatomical segment to be brought into view by rotating the anatomical segment. Note that the cut plane may modify the bounding-box coordinates of the anatomical segment by identifying the intersection points of the cut plane to the bounding box in the direction of the normal of the cut plane.

For the bookmark virtual instrument, the representation includes: point 1 that defines x_(min), y_(min) and z_(min); point 2 that defines x_(max), y_(max) and Z_(max). The bookmark may be specified by the center point and the bounds of the box (x_(min), x_(max), y_(min), y_(max), z_(min), z_(max)). Moreover, the center point (Center Point) is the control point of the region of interest. In particular, Center[x]=0.5(x _(max) −x _(min)), Center[y]=0.5(y _(max) −y _(min)), and Center[z]=0.5(z _(max) −z _(min)).

The user can control the bookmark by placing it at a center point of any clinical object with a box size equal to 1, or by placing a second point to define a volumetric region of interest. When the volumetric region of interest is placed, that region can be copied for further analysis. Note that using a bookmark, the user can specify a clinical target that can be added to the object list of clinical objects for use by graphics module 634.

For the problem-solving virtual instrument, the representation combines a bookmark to a 3D region of interest and a cut plane for the associated 2D projection or cross-section. This representation is summarized in Table 2.

TABLE 2 2D Cross-Section 3D Region of Interest The origin point defines the Point 1 defines x_(min), y_(min) and z_(min). position of a cut plane (x₀, y₀, z₀). Point 2 defines x_(max), y_(max) and z_(max). Point 1 defines axis 1 (α₁) of the The bookmark is defined by the cut plane. Point 2 defines axis 2 center point and the bounds of (α₂) of the cut plane. The normal to the box (x_(min), x_(max), y_(min), y_(max), z_(min), the cut plane points in the direction z_(max)). The center point is the of the cross product of α₁ with α₂. control point. The center point is the control point of the cut plane.

The user can control the problem-solving virtual instrument to recall a bookmarked clinical target or a selected region of interest of a 3D object and can interact with its center point. In this case, the surface of the 3D object may be transparent (as specified by one of optional transfer functions 644 in FIG. 6). The 2D cross-section is specified by a cut plane (defined by the origin, point 1 and point 2) that maps the corresponding 2D DICOM image of the cut plane within the region of interest. By interacting with the 2D cross-section center point, the user can determine the optimal 2D cross-sectional image of a particular clinical target. Note that the problem-solving virtual instrument allows the user to dynamically interact with the 3D stereoscopic image and at least one 2D projection. As the user interacts with objects in these images, the displayed images may be dynamically updated. Furthermore, instead of merely rotating an object, the user may be able to ‘look around’ (i.e., motion parallax in which the object rotates in the opposite direction to the rotation of the user relative to the object), so that they can observe behind an object, and concurrently can observe the correct 2D projection.

This operation of the problem-solving virtual instrument is illustrated in FIGS. 8A-C, which shows the display of a 3D stereoscopic image and 2D projections side by side (such as on display 114 in FIGS. 1 and 6). When the user moves, changes their viewing direction or perspective and/or interacts with the object (in this case a rectangular cube) in the 3D stereoscopic image, graphics module 634 in FIG. 6 dynamically updates the 2D projection. This may allow the user to look around the object (as opposed to rotating it along a fixed axis). Moreover, by providing accurate and related 2D and 3D images, the problem-solving virtual instrument may allow a physician to leverage their existing training and approach for interpreting 2D images when simultaneously viewing 3D images.

Note that the ability to define an arbitrary cut plane through a 3D stereoscopic image and/or to present an associated 2D projection can facilitate manual and/or automated annotation. For example, computer system 600 may provide, on a display, a 3D image of a portion of an individual, where the 3D image has an initial position and orientation. Then, computer system 600 may receive information specifying a 2D plane in the 3D image, where the 2D plane has an arbitrary angular position relative to the initial orientation (such as an oblique angle relative to a symmetry axis of the individual). In response, computer system 600 may translate and rotate the 3D image so that the 2D plane is presented in a reference 2D plane of the display with an orientation parallel to an orientation of the reference 2D plane, where, prior to the translating and the rotating, the angular position is different than that of the reference 2D plane and is different from a predefined orientation of slices in the 3D image. Note that the 2D plane may be positioned at a zero-parallax position so that 3D information in the 2D plane is perceived as 2D information. Moreover, note that a normal of the reference 2D plane may be perpendicular to a plane of the display. Next, computer system 600 may receive information specifying the detailed annotation in the 2D plane, where the detailed annotation includes at least one of: a size of the anatomical structure based on annotation markers, an orientation of the anatomical structure, a direction of the anatomical structure and/or a location of the anatomical structure. Moreover, after the annotation is complete, computer system 600 may translate and rotate the 3D image back to the initial position and orientation.

Similarly, in some embodiments one or more of the aforementioned annotation operations may be repeated to provide multi-point annotation. For example, computer system 600 may iteratively performs a set of operations for a group of marker points. Notably, for a given marker point, computer system 600 may provide, on a display, a given 3D image (such as a first 3D image) of a portion of an individual, where the given 3D image has an initial position and an initial orientation. Then, computer system 600 may receive information specifying a given 2D plane in the given 3D image, where the given 2D plane has an angular position relative to the initial orientation. Moreover, computer system 600 may translate and rotate the given 3D image so that the given 2D plane is presented on a reference 2D plane of the display with an orientation parallel to the reference 2D plane (so that the normal to the given 2D plane is parallel to the normal of the reference 2D plane), where, prior to the translating and the rotating, the angular position of the given 2D plane is different from an angular position of the reference 2D plane and is different from a predefined orientation of slices in the given 3D image. Next, computer system 600 may receive annotation information specifying detailed annotation in the given 2D plane of the given marker point. After the annotation of the given marker point is complete, computer system 600 may translate and rotate the given 3D image back to the initial position and the initial orientation.

In some embodiments, instead of translate and rotate the given 3D image back to the initial position and the initial orientation after the annotation of each of the given marker points, computer system 600 continues with operations associated with one or more subsequent marker points. For example, after the annotation of a first marker point is complete, computer system 600 may provide, on the display, a second 3D image of a portion of an individual, where the second 3D image is generated by translating image data along a normal direction to the first 2D plane by a predefined distance. Then, computer system 600 may receive annotation information specifying detailed annotation in a second 2D plane of a second marker point. These operations may be repeated for zero or more additional marker points. Moreover, after the annotation of the last marker point is complete, computer system 600 may translate and rotate the last 3D image back to the initial position and the initial orientation.

Note that the given 3D image may be different for at least some of the marker points in the group of marker points. Moreover, at least a pair of the marker points in the group of marker points may describe one of: a linear distance, or a 3D vector. Furthermore, at least three of the marker points in the group of marker points may describe one of: a plane, or an angle between two intersecting lines. Additionally, at least some of the marker points in the group of marker points may describe one of: a poly-line, an open contour, a closed contour, or a closed surface.

While the preceding embodiments illustrated the display of a 3D image and/or a 2D image associated with a 2D plane (such as a cut plane), in other embodiments the 3D image and/or the 2D image may be simulated. For example, computer system 600 may generate a simulated 2D fluoroscopy image based at least in part on data in a predetermined 3D image associated with an individual's body, and relative positions of a fluoroscopy source in a C-arm measurement system, a detector in the C-arm measurement system and a predefined cut plane in the individual's body. Then, computer system 600 may provide or display the simulated 2D fluoroscopy image with a 3D context associated with the predefined cut plane in the individual's body, where the 3D context may include a stereoscopic image with image parallax of at least a portion of the individual's body based at least in part on the 3D model of the individual's body.

Note that generating the simulated 2D fluoroscopy image may involve a forward projection. Moreover, generating the simulated 2D fluoroscopy image may involve calculating accumulated absorption corresponding to density along lines, corresponding to X-ray trajectories, through pixels in the predetermined 3D image.

Furthermore, the 3D context may include: a slice, based at least in part on a 3D model of the individual's body, having a thickness through the individual's body that includes the predefined cut plane. Additionally, the 3D context may include at least partial views of anatomical structures located behind the predefined cut plane via at least partial transparency of stereoscopic image.

In some embodiments, computer system 600 may provide, based at least in part on the 3D model, a second stereoscopic image with image parallax adjacent to the simulated 2D fluoroscopy image with the 3D context. The second stereoscopic image may include graphical representations of the relative positions of the fluoroscopy source in the C-arm measurement system, the detector in the C-arm measurement system and the predefined cut plane.

Note that the 3D context and the simulated 2D fluoroscopy image may be superimposed.

Moreover, computer system 600 may receive a user-interface command associated with user-interface activity. In response, computer system 600 may provide the simulated 2D fluoroscopy image without the 3D context.

Furthermore, an orientation and a location of the predefined cut plane may be specified based at least in part on: a position of the fluoroscopy source and the detector in the C-arm measurement system; and/or a received user-interface command associated with user-interface activity.

The intuitive 2D virtual instrument presents a 2D image that is displayed as the viewer scrolls through an array of 2D images using a stylus (and, more generally, the optional interaction tool) or a scroll bar. This virtual instrument can improve intuitive understanding of the 2D images.

The intuitive 2D virtual instrument uses a 3D volumetric image or dataset that includes the 2D images. These 2D images include a collection of voxels that describe a volume, where each voxel has an associated 4×4 model matrix. Moreover, the representation for the intuitive 2D virtual instrument is a fixed cut plane, which specifies the presented 2D image (i.e., voxels in the dataset that are within the plane of interaction with the cut plane). The presented 2D image is at position (for example, an axial position) with a predefined center (x, y, z position) and bounds (x_(min), x_(max), y_(min), y_(max), z_(min), z_(max)). The cut plane, which has a 4×4 rotation matrix with a scale of one, is a two-dimensional surface that is perpendicular to its rotation matrix. Note that the cut plane can be defined by: the origin of the cut plane (which is at the center of the presented 2D image), the normal to the current plane (which is the normal orientation of the presented 2D image), and/or the normal matrix N of the reference model matrix M for the presented 2D image (which defines the dimensions, scale and origin for all of the voxels in the presented 2D image), where N is defined as the transpose(inverse(M)). Another way to define the cut plane is by using the forward (pF) and backward point (pB) of the stylus or the optional interaction tool. By normalizing the interaction-tool vector, which is defined as

$\frac{{pF} - {pB}}{{{p\; F} - {pB}}},$ normal of the cut plane is specified, and the forward point of the stylus of the optional interaction tool specifies the center of the cut plane.

In the intuitive 2D virtual instrument, the normal of the cut plane defines the view direction in which anything behind the cut plane can be seen by suitable manipulation or interaction with the cut plane, while anything in front of the cut plane cannot be seen. Because the dataset for the intuitive 2D virtual instrument only includes image data (e.g., texture values) only the voxel values on the cut plane are displayed. Therefore, transfer functions and segmentation are not used with the intuitive 2D virtual instrument.

By translating/rotating the cut plane using the stylus (or the scroll bar), the viewer can display different oblique 2D image planes (i.e., different 2D slices or cross-sections in the dataset). If the viewer twists their wrist, the intuitive 2D virtual instrument modifies the presented 2D image (in a perpendicular plane to the stylus direction). In addition, using the stylus the viewer can go through axial, sagittal or coronal views in sequence. The viewer can point to a pixel on the cut plane and can push it forward to the front.

During interaction with the viewer, for the cut plane the intuitive 2D virtual instrument uses the stylus coordinates to perform the operations of: calculating a translation matrix (Tr) between the past and present position; calculating the rotation (Rm) between the past and present position; calculating the transformation matrix (Tm) equal to −Tr·Rm·Tr; and applying the transformation to the reference model matrix. Thus, the cut plane is only rotated, while translations forward or backward in the slides are canceled out. Similarly, for the presented 2D image, the intuitive 2D virtual instrument uses the stylus coordinates to perform the operations of: calculating a translation matrix (Tr) between the past and present position; calculating the rotation (Rm) between the past and present position; calculating the transformation matrix (Tm) equal to Rm·(−Tr); and applying the transformation to the reference model matrix. Thus, the presented 2D image includes translations (moving forward or backward in the slides) and includes a 2D slice at an arbitrary angle with respect to fixed (or predefined) 2D data slices based at least in part on manipulations in the plane of the cut plane.

The interaction is illustrated in FIG. 9, which shows the cut plane and the presented 2D image side by side (such as on display 114 in FIGS. 1 and 6) for the intuitive 2D virtual instrument. (In addition, non-visible 2D images surrounding the presented 2D image are illustrated in FIG. 9 using dashed lines.) Based at least in part on manipulation of the stylus by the viewer (which can include rotations and/or translations), the cut plane is rotated, while the presented 2D image is translated and/or rotated to uncover voxels. Alternatively or additionally, different cut planes may be specified by bookmarks defined by the viewer (such as anatomical locations of suspected or potential polyps), and associated 2D images may be presented to the viewer when the viewer subsequently scrolls through the bookmarks.

While the preceding examples illustrated at least a 3D image and an associated 2D image being presented side by side, in other embodiments a user can use a virtual instrument to view either the 3D image or the 2D image in isolation.

Prehension and Motion Parallax

Referring back to FIG. 6, tracking module 636 may track the position of optional interaction tool 120 and/or one or more digits, a hand or an arm of viewer 122 (FIG. 1), for example, using the one or more optional position sensors 116. In the discussion that follows, the position of optional interaction tool 120 is used as an illustrative example. The resulting tracking information 650 may be used to update the position of optional interaction tool 120 (e.g., PastPh equals PresPh, and PresPh equals the current position of optional interaction tool 120). Graphics module 634 may use the revised position of the optional interaction tool 120 to generate a revised transformation model matrix for optional interaction tool 120 in model matrices 652.

Next, tracking module 636 may test if optional interaction tool 120 and/or the one or more digits, the hand or the arm of viewer 122 (FIG. 1) is touching or interfacing with one of objects 648 shown in display 114 (note, however, that in some embodiments viewer 122 in FIG. 1 cannot interact with some of reference features 646 using optional interaction tool 120). If yes, the position and orientation of optional interaction tool 120 may be modified, with a commensurate impact on the transformation model matrix in model matrices 652 for optional interaction tool 120. In particular, the translation to be applied to the one of objects 648 (DeltaVector) may be determined based at least in part on the x, y and z position of the tool tip (ToolTip) (which is specified by PresPh) and the x, y and z position where optional interaction tool 120 touches the one of objects 648 (ContactPoint) using DeltaVector[x]=ToolTip[x]−ContactPoint[x], DeltaVector[y]=ToolTip[y]−ContactPoint[y], and DeltaVector[z]=ToolTip[z]−ContactPoint[z].

The rotation to be applied may be determined using a local variable (in the form of a 4×4 matrix) called ROT Initially, ROT may be an identity matrix. The rotation elements of ROT may be determined by matrix multiplying the rotation elements specified by PresPh and the rotation elements specified by PastPh. Then, the following transformation operations are concatenated and applied to the model matrix of the one of objects 648 using a local 4×4 matrix T (which initially includes all 16 elements in the current model matrix: translate T to the negative of the center position of the one of objects 648 (−Center[x], −Center[y], −Center[z]) to eliminate interaction jitter; rotate T by ROT; translate T to the object center (Center[x], Center[y], Center[z]) to eliminate interaction jitter; and translate T to Delta Vector (DeltaVector[x], DeltaVector[y], DeltaVector[z]). Next, the model matrix is replaced with the T matrix.

Note that calculations related to the position of optional interaction tool 120 may occur every 15 ms or faster so that prehension related to optional interaction tool 120 is updated at least 66.67 times per second.

Moreover, tracking module 636 may track the head position of viewer 122 (FIG. 1), for example, using the one or more optional position sensors 116. Updates to head-position information 654 may be applied by graphics module 634 to the virtual space and used to render left-eye and right-eye images for display on display 114. In particular, the inverse of left-eye view matrix 656 may be revised by: translating the object relative to the position coordinate of the camera or the image sensor (the monoscopic view matrix V₀ that is located at the center of display 114); rotating by θ−90° (which specifies a normal to an inclined display); and translating to the eye of the viewer 122 in FIG. 1 by taking away the original offset d, translating to the current head position and translating left to 0.5ipd. Thus,

$V_{left\_ eye}^{- 1} = {V_{0}^{- 1} \cdot {{Rv}\left( {\theta - 90^{{^\circ}}} \right)} \cdot {{Tv}\left( {- d} \right)} \cdot {{Tv}({head\_ position})} \cdot {{{Tv}\left( {\frac{- {ipd}}{2},{0,0}} \right)}.}}$ Similarly, left-eye frustum 658 may be revised by: translating to the current head position relative to the offset k (shown in FIGS. 3 and 4) between the eyes of viewer 122 in FIG. 1 and the viewing plane; and translating left to 0.5ipd. Thus,

$F_{left\_ eye} = {{{Tv}\left( {0,0,k} \right)} \cdot {{Tv}({head\_ position})} \cdot {{{Tv}\left( {\frac{- {ipd}}{2},{0,0}} \right)}.}}$

These operations may be repeated for the right eye to calculate right-eye view matrix 660 and right-eye frustum 662, i.e.,

$V_{right\_ eye}^{- 1} = {V_{0}^{- 1} \cdot {{Rv}\left( {\theta - 90^{{^\circ}}} \right)} \cdot {{Tv}\left( {- d} \right)} \cdot {{Tv}({head\_ position})} \cdot {{{Tv}\left( {\frac{ipd}{2},{0,0}} \right)}.\mspace{20mu}{and}}}$ $\mspace{20mu}{F_{right\_ eye} = {{{Tv}\left( {0,0,k} \right)} \cdot {{Tv}({head\_ position})} \cdot {{{Tv}\left( {\frac{ipd}{2},{0,0}} \right)}.}}}$

Using the left-eye and the right-eye view and frustum matrices 656-662, graphics module 634 may determine left-eye image 664 for a given transformation model matrix Mt in model matrices 652 based at least in part on Mt·V _(left_eye) ·F _(left_eye), and may determine right-eye image 666 for the given transformation model matrix Mt based at least in part on Mt·V _(right_eye) ·F _(right_eye).

After applying monoscopic depth cues 668, graphics module 634 may display left-eye and right-eye images 666 and 668 on display 114. Note that calculations related to the head position may occur at least every 50-100 ms, and the rendered images may be displayed on display 114 at a frequency of at least 60 Hz for each eye.

In general, objects are presented in the rendered images on display 114 with image parallax. However, in an exemplary embodiment the object corresponding to optional interaction tool 120 on display 114 is not be represented with image parallax.

Therefore computer system 600 may implement a data-centric approach (as opposed to a model-centric approach) to generate left-eye and right-eye images 664 and 666 with enhanced (or optimal) depth acuity for discrete-sampling data.

However, in other embodiments the imaging technique may be applied to continuous-valued or analog data. For example, data module 632 may interpolate between discrete samples in data 640. This interpolation (such as minimum bandwidth interpolation) may be used to resample data 640 and/or to generate continuous-valued data.

While the preceding discussion illustrated left-eye and right-eye frustums with near and far (clip) planes that can cause an object to drop out of left-eye and right-eye images 664 and 666 if viewer 122 (FIG. 1) moves far enough away from display 114, in some embodiments the left-eye and right-eye frustums provide a more graceful decay as viewer 122 (FIG. 1) moves away from display 114.

Furthermore, when the resulting depth acuity in left-eye and right-eye images 664 and 666 is sub-optimal, intuitive clues (such as by changing the color of the rendered images or by displaying an icon in the rendered images) may be used to alert viewer 122 (FIG. 1).

Furthermore, while the preceding embodiments illustrated prehension in the context of motion of optional interaction tool 120, in other embodiments additional sensory feedback may be provided to viewer 122 (FIG. 1) based at least in part on motion of optional interaction tool 120. For example, haptic feedback may be provided based at least in part on annotation, metadata or CT scan Hounsfield units about materials having different densities (such as different types of tissue) that may be generated by data module 632. This haptic feedback may be useful during surgical planning or a simulated virtual surgical procedure.

Because information in computer system 600 may be sensitive in nature, in some embodiments at least some of the data stored in memory 624 and/or at least some of the data communicated using communication module 628 is encrypted using encryption module 638.

Instructions in the various modules in memory 624 may be implemented in: a high-level procedural language, an object-oriented programming language, and/or in an assembly or machine language. Note that the programming language may be compiled or interpreted, e.g., configurable or configured, to be executed by the one or more processors 610.

Although computer system 600 is illustrated as having a number of discrete components, FIG. 6 is intended to be a functional description of the various features that may be present in computer system 600 rather than a structural schematic of the embodiments described herein. In some embodiments, some or all of the functionality of computer system 600 may be implemented in one or more application-specific integrated circuits (ASICs) and/or one or more digital signal processors (DSPs). Moreover, computer system 600 may be implemented using one or more computers at a common location or at one or more geographically distributed or remote locations. Thus, in some embodiments, computer system 600 is implemented using cloud-based computers. However, in other embodiments, computer system 600 is implemented using local computer resources.

Computer system 600, as well as electronic devices, computers and servers in graphical system 100 (FIG. 1), may include one of a variety of devices capable of performing operations on computer-readable data or communicating such data between two or more computing systems over a network, including: a desktop computer, a laptop computer, a tablet computer, a subnotebook/netbook, a supercomputer, a mainframe computer, a portable electronic device (such as a cellular telephone, a PDA, a smartwatch, etc.), a server, a portable computing device, a consumer-electronic device, a Picture Archiving and Communication System (PACS), and/or a client computer (in a client-server architecture). Moreover, communication interface 612 may communicate with other electronic devices via a network, such as: the Internet, World Wide Web (WWW), an intranet, a cellular-telephone network, LAN, WAN, MAN, or a combination of networks, or other technology enabling communication between computing systems.

Graphical system 100 (FIG. 1) and/or computer system 600 may include fewer components or additional components. Moreover, two or more components may be combined into a single component, and/or a position of one or more components may be changed. In some embodiments, the functionality of graphical system 100 (FIG. 1) and/or computer system 600 may be implemented more in hardware and less in software, or less in hardware and more in software, as is known in the art.

Methods

FIG. 10 presents a flow diagram illustrating a method 1000 for providing stereoscopic images, which may be performed by graphical system 100 (FIG. 1) and, more generally, a computer system. During operation, the computer system generates the stereoscopic images (operation 1014) at a location corresponding to a viewing plane based at least in part on data having a discrete spatial resolution, where the stereoscopic images include image parallax. Then, the computer system scales objects in the stereoscopic images (operation 1016) so that depth acuity associated with the image parallax is increased, where the scaling (or stereopsis scaling) is based at least in part on the spatial resolution and a viewing geometry associated with a display. For example, the objects may be scaled prior to the start of rendering. Next, the computer system provides the resulting stereoscopic images (operation 1018) to the display. For example, the computer system may render and provide the stereoscopic images.

Note that the spatial resolution may be associated with a voxel size in the data, along a direction between images in the data and/or any direction of discrete sampling.

Moreover, the viewing plane may correspond to the display. In some embodiments, the computer system optionally tracks positions of eyes (operation 1010) of an individual that views the stereoscopic images on the display. The stereoscopic images may be generated based at least in part on the tracked positions of the eyes of the individual. Furthermore, the computer system may optionally track motion (operation 1010) of the individual, and may optionally re-generate the stereoscopic images based at least in part on the tracked motion of the individual (operation 1018) so that the stereoscopic images include motion parallax. Additionally, the computer system may optionally track interaction (operation 1012) of the individual with information in the displayed stereoscopic images, and may optionally re-generate the stereoscopic images based at least in part on the tracked interaction so that the stereoscopic images include prehension by optionally repeating (operation 1020) one or more operations in method 1000. For example, the individual may interact with the information using one or more interaction tools. Thus, when generating the stereoscopic images (operation 1014) or preparing the stereoscopic images, information from optionally tracked motion (operation 1010) and/or the optionally tracked interaction may be used to generate or revise the view and projection matrices.

Note that the stereoscopic images may include a first image to be viewed by a left eye of the individual and a second image to be viewed by a right eye of the individual. Moreover, the viewing geometry may include a distance from the display of the individual and/or a focal point of the individual.

In some embodiments, generating the stereoscopic images is based at least in part on: where the information in the stereoscopic images is located relative to the eyes of the individual that views the stereoscopic images on the display; and a first frustum for one of the eyes of the individual and a second frustum for another of the eyes of the individual that specify what the eyes of the individual observe when viewing the stereoscopic images on the display. Furthermore, generating the stereoscopic images may involve: adding monoscopic depth cues to the stereoscopic images; and rendering the stereoscopic images.

In some embodiments, the computer system optionally tracks a gaze direction (operation 1010) of the individual that views the stereoscopic images on the display. Moreover, an intensity of a given voxel in a given one of the stereoscopic images may be based at least in part on a transfer function that specifies a transparency of the given voxel and the gaze direction so that the stereoscopic images include foveated imaging.

FIG. 11 presents a flow diagram illustrating a method 1100 for providing 3D stereoscopic images and associated 2D projections, which may be performed by graphical system 100 (FIG. 1) and, more generally, a computer system. During operation, the computer system provides one or more 3D stereoscopic images with motion parallax and/or prehension along with one or more 2D projections (or cross-sectional views) associated with the 3D stereoscopic images (operation 1110). The 3D stereoscopic images and the 2D projections may be displayed side by side on a common display. Moreover, as the user interacts with the 3D stereoscopic images and/or the one or more 2D projections and changes their viewing perspective, the computer system may dynamically update the 3D stereoscopic images and the 2D projections based at least in part on the current perspective (operation 1112). In some embodiments, note that the 2D projections are always presented along a perspective direction perpendicular to the user so that motion parallax is registered in the 2D projections.

By combining image parallax, motion parallax, prehension and stereopsis scaling to create an interactive stereo display, it is possible for users of the graphical system to interact with displayed 3D objects as if they were real objects. For example, physicians can visually work with parts of the body in open 3D space. By incorporating the sensory cues associated with direct interaction with the displayed objects, it is believed that both cognitive and intuitive skills of the users will be improved. This is expected to provide a meaningful increase in the user's knowledge.

In the case of medicine, this cognitive-intuitive tie can provide a paradigm shift in the areas of diagnostics, surgical planning and a virtual surgical procedure by allowing physicians and medical professionals to focus their attention on solving clinical problems without the need to struggle through the interpretation of 3D anatomy using 2D views. This struggle, which is referred to as ‘spatial cognition,’ involves viewing 2D images and constructing a 3D recreation in your mind (a cognitively intensive process). In the absence of the True 3D provided by the graphical system, the risk is that clinically significant information may be lost. The True 3D provided by the graphical system may also address the different spatial cognitive abilities of the physicians and medical professionals when performing spatial cognition.

In many applications, physicians and/or medical professionals have precise interactions with the 2D and/or 3D views provided by graphical system 100 (FIG. 1). For example, a physician may interact with the 2D and/or 3D views to measure the size of an anatomical feature. Alternatively or additionally, a physician may dynamically interact with the 2D and/or 3D views to plan a medical procedure.

In order to facilitate the precise interaction, the graphical system may determine the absolute motion of viewer 122 (FIG. 1) and, more generally, of an individual (such as a physician or a medical professional). Such precise or quantitative interaction can be facilitated through the use of optional interaction tool 120 and by tracking the locations of the viewer's eyes, their gaze direction and/or what they are focused on. As discussed previously, in some embodiments the absolute motion of viewer 122 (FIG. 1) is determined using information associated with glasses worn by viewer 122 (FIG. 1). However, the glasses can be cumbersome and, thus, annoying for viewer 122 (FIG. 1). Consequently, the glasses can degrade the user experience when using graphical system 100 (FIG. 1), and therefore can adversely impact measurements or planning performed by viewer 122 (FIG. 1) when using graphical system 100 (FIG. 1).

These problems are addressed in some embodiments by a measurement technique that determines absolute motion of viewer 122 (FIG. 1) and, more generally, of an individual without using information associated with glasses worn by viewer 122 (FIG. 1). Therefore, in some embodiments, the measurement technique does not require the individual to wear special or particular glasses when using graphical system 100 (FIG. 1).

In the discussion that follows, the measurement technique is used in conjunction with graphical system 100 (FIG. 1). However, in other embodiments, the measurement technique can be used in conjunction with a variety of electronic devices, such computer system 600 (FIG. 6) and, more generally, an electronic device.

FIG. 12 presents a flow diagram illustrating a method 1200 for determining absolute motion, which may be performed by graphical system 100 (FIG. 1), a computer or a computer system (such as computer system 600 in FIG. 6), and, more generally, an electronic device, which are used interchangeably in the present discussion. During operation, the electronic device may capture the images (operation 1210) using multiple image sensors in the electronic device, which have different fields of view and positions. For example, the positions may be predefined, such as positions that are predefined and spatially offset from each other. Then, the electronic device may determine, based at least in part on an apparent size of an anatomical feature in the images and a predefined or predetermined size of the anatomical feature, absolute motion of at least a portion of the individual along a direction (operation 1212) between at least the portion of the individual and the electronic device. Moreover, the electronic device may estimate a distance along the direction (operation 1214) based at least in part on the apparent size of the anatomical feature in at least one of the images and the predefined or predetermined size of the anatomical feature. Next, the electronic device may compute, based at least in part on the estimated distance and angular information associated with one or more objects in the images relative to the positions, absolute motion of at least the portion of the individual in a plane (operation 1216) that is perpendicular to the direction.

Note that at least the portion of the individual may include eyes of the individual. Moreover, the one or more objects may include pupils of the individual. Alternatively, the one or more objects may include the anatomical feature.

In some embodiments, the electronic device optionally performs one or more additional operations (operation 1218). For example, the electronic device may include second image sensors that have different second fields of view, and that capture second images. During operation, the electronic device may repeat the capturing, determining, estimating and computing operations for the second images to determine absolution motion of a second portion of the individual.

Note that the second portion of the individual may include a hand of the individual or a finger of the individual. Moreover, the electronic device may infer interaction with an object by the individual based at least in part on the determined absolute motion in the direction and/or the plane of at least the second portion of the individual. Alternatively, in some embodiments the electronic device may determine absolute motion of an object held by the individual (such as a pointer or a stylus) or an object that the individual interacts with. This interaction may involve direct contact with the individual or may be indirect. Thus, the individual may, via the determined absolute motion along the direction and/or in the plane (operations 1212 and/or 1216), interact with, e.g., displayed content, such as stereoscopic or 3D images. In some embodiments, the interaction may be specified by the individual using gestures or virtual haptic interaction.

The anatomical feature may be associated with the individual (e.g., the ipd of the individual may be premeasured or predetermined) or a group of individuals that have one or more characteristics in common with the individual. For example, the group may include individuals having a common: ancestry, race, age, gender, socioeconomic status, and/or geographic region of residence as the individual (e.g., the group may be from the same region or country as the individual). However, in some embodiments the group includes a diverse population, such as a random group of people. In some embodiments, the anatomical feature may be an average or mean ipd, e.g., of the group.

Consequently, the anatomical feature comprises: an interpupillary distance (ipd), a hand of the individual, a finger of the individual or another anatomical feature. For example, the other anatomical feature may include one or more of: the mandible, the premaxilla, a supraorbital ridge, the bridge of the nose, a nasal-cavity separation, an ear lobe, a normalized facial feature used by facial recognition software, an eye size, a mouth size, etc. However, the variability in human facial features can be a challenge in embodiments that use an average or a mean size of an anatomical feature (other than ipd) of the group of individuals. In some embodiments, the anatomical feature includes one or more fingers of the hand. Furthermore, instead of or in addition to the anatomical feature, in some embodiments the individual is provided with an object (such as a pen they place in their pocket or a bar they attached to a lapel) having a known or predetermined size, which can be used as a reference when determining absolute motion along the direction and/or in the plane.

Moreover, the electronic device may include a time-of-flight (tof) sensor that captures tof information. In these embodiments, the absolute motion along the direction and/or in the plane may be determined based at least in part on the tof information. More generally, the electronic device may perform one or more measurements in addition to capturing the images, and the additional measurement(s) may be used to determine the absolute motion along the direction and/or in the plane.

Furthermore, the electronic device may include a display. In these embodiments, the optional one or more additional operations (operation 1218) may include that the electronic device may generate stereoscopic images or 3D images that include image parallax based at least in part on the determined absolute motion along the direction and in the plane and a viewing geometry that matches or corresponds to the absolute motion along the direction and in the plane. Then, the electronic device may provide the stereoscopic images on the display.

For example, the determined absolute motion in the direction and/or the plane of at least the portion of the individual may correspond to positions of eyes or pupils of the individual (such as the individual's gaze direction), and the stereoscopic images may be generated based at least in part on the positions of the eyes or pupils of the individual.

In some embodiments, the determined absolute motion in the direction and/or the plane of at least the portion of the individual may correspond to a focal point of the individual, and the stereoscopic images may be generated based at least in part on the focal point. Moreover, an intensity of a given voxel in a given one of the stereoscopic images may be based at least in part on a transfer function that specifies a transparency of the given voxel and the focal point, so that the stereoscopic images comprise foveated imaging.

Furthermore, the image sensors may capture images that include eyes of the individual, a hand or finger of the individual, and the display in which the stereoscopic images are displayed. In these embodiments, image parallax and motion parallax of the stereoscopic images within the viewing geometry may be based at least in part on the images.

Note that at least two of the image sensors may be arranged in a plane of the display, and the direction may be perpendicular to the display. More generally, the image sensors may be pointed or orientated in an arbitrary direction (which may not, per se, be perpendicular to the direction). For example, a first subset of the image sensors (with one or more image sensors) may provide one or more display fields of view, in which a displayed image is visible or can be captured. Moreover, a second subset of the image sensors (with one or more image sensors) may provide one or more eye fields of view, in which the eyes of the individual can be tracked. Furthermore, a third subset of the image sensors (with one or more image sensors) may provide one or more hand or finger fields of view, in which the hand or at least a finger can be tracked. The hand or finger fields of view may provide the interaction geometry, and that the intersection of the display fields of view, the eye fields of view and the hand or finger fields of view may provide the information used to create the True 3D environment.

The different perspectives of the images associated with the image sensors may provide relative depth perception along the direction. However, in the absence of an object having a known (e.g., predefined or predetermined) size, which can be used as a calibration reference, it can be difficult to determine absolute motion along the direction between at least the portion of the individual and the electronic device.

This challenge is addressed in the measurement technique by using an anatomical feature as the calibration reference. In particular, because the angle subtended by the anatomical feature varies inversely with distance, the apparent size of the anatomical feature in a given image can be used be used to estimate the distance (operation 1214), and changes in the apparent size of the anatomical feature in two or more images can be used to determine the absolute distance along the direction (operation 1212). Similarly, based on the angles to one or more objects in the images and the estimated distance, the trigonometric problem can be solved to determine the absolute motion in the plane (operation 1216).

By using the measurement technique, the electronic device may determine the absolute motion without using information associated with glasses worn by the individual (such as glasses having a known ipd) and/or a glove (such as a data glove) worn by the individual. Therefore, the measurement may not require that the individual where special or particular glasses and/or a glove to determine the absolute motion along the direction. Thus, the measurement technique may be used to quantitatively determine motion along the direction and/or in the plane, i.e., in 1D up to 3D. Consequently, the measurement technique may facilitate the use of quantitative gestures or accurate direct or virtual haptic interaction with the electronic device.

In some embodiments of methods 1000, 1100 and/or 1200 there may be additional or fewer operations. Moreover, the order of the operations may be changed, and/or two or more operations may be combined into a single operation.

We now described exemplary embodiments of the measurement technique. As noted previously, in some embodiments the anatomical feature is the ipd, which is defined as the distance between the centers of the pupils. This is shown in FIG. 13, which presents a drawing illustrating an interpupillary distance 1310. For example, the mean ipd for the majority of adults may vary between 50 and 75 mm, and for all adults between 45 and 80 mm. In general, the ipd varies from person to person based at least in part on factors such as: ethnicity, ancestry, race, gender, age, socioeconomic status, and/or geographic region of residence. For a five-year old child, the minimum ipd may be around 40 mm. Moreover, for females, the mean ipd may be 61.7 mm with a standard deviation of 3.6 mm, while for males the mean ipd may be 64.0 mm with a standard deviation of 3.4 mm.

Alternatively or additionally, the anatomical feature may include a hand or a finger. This is shown in FIG. 14, which presents a drawing illustrating a hand 1410 and fingers 1412. Notably, the anatomical feature may include: a size of hand 1410 (such as a dimension of hand 1410 or an area of hand 1410), a length 1414 of at least one of fingers 1412 and/or a width 1416 of at least one of fingers 1412.

FIG. 15 presents a drawing illustrating intersecting fields of view 1510. Notably, these fields of view may be associated with different subsets of the multiple image sensors 1512 in or associated with the electronic device. For example, the fields of view 1510 may include: one or more display fields of view, one or more eye fields of view and/or one or more hand or finger fields of view. As noted previously, the hand or finger fields of view may provide the interaction geometry, and the intersection of the display fields of view, the eye fields of view and the hand or finger fields of view may provide the information used to create the True 3D environment (such as image parallax and/or motion parallax).

FIG. 16 presents a drawing illustrating determining absolute motion in graphical system 100 (FIG. 1), which may be performed by tracking system 118 (FIG. 1) or tracking module 636 (FIG. 6). In particular, light from an object at a distance (d) 1610 from the one or more optional position sensors 116 may subtend an angle 1612. Similarly, light from the object at a distance 1614 from the one or more optional position sensors 116 may subtend an angle 1616. In general, objects with smaller subtended angles are perceived as being further away. However, it can be challenging to calibrate motion along direction 1618 into absolute motion. In the measurement technique, a reference (such as an anatomical feature having a predefined or predetermined size) is used to calibrate relative motion, so that absolute motion can be determined. For example, as shown in FIG. 16, ipd 1620 may be used as the anatomical feature.

Furthermore, motion 1622 in a plane 1624 perpendicular to direction 1618 can be determined based at least in part on angle (θ) 1626 (which is an example of angular information) and distance 1610. For example, the absolute motion 1622 is given by

$\frac{d}{\tan(\theta)}.$

While the preceding examples illustrated the measurement technique using an anatomical feature, in other embodiments non-anatomical features may be used as a reference for calibrating the absolute motion along the direction. For example, the individual may be provided with an object having a predefined or predetermined size.

When the preceding embodiments are used in conjunction with a lenticular array display or a parallax-barrier-type display, the computer system may perform so-called ‘pixel mapping’ or ‘dynamic subpixel layout’ (DSL). This is illustrated in FIG. 17, which presents a drawing illustrating a side view of a lenticular array display 1700. As described further below with reference to FIGS. 18-22, when generating stereoscopic images, the computer system may position a current rendered image in pixels (such as pixel 1712) in an LCD panel on the display, so that the optics sends or directs the current rendered image to an eye of interest (such as the left or right eye). The pixel mapping may be facilitated by a combination of head or gaze tracking, knowledge of the display geometry and mixing of the current rendered image on a subpixel level (such as for each color in an RGB color space). For example, the current rendered image may be displayed in pixels corresponding to the left eye 60% of the time and in pixels corresponding to the right eye 40%. This pixel-based duty-cycle weighting may be repeated for each color in the RGB color space. Note that the duty-cycle weighting may be determined by the position of which ever eye (left of right) that is closest to the optical mapping of a display lens (such as lens 1710) and the current rendered image. In some embodiments, a left or right projection matrix is used to define how the rays from the current rendered image relate to a tracked left or right eye. Thus, based at least in part on the position of the left and right eyes relative to lenticular array display 1700, the computer system may give more duty-cycle weighting to the left eye or the right eye.

In some embodiments, during the pixel mapping, the computer system dynamically drives pixels (via RGB buffers), so that the views correspond to the positions of the left and right eyes of an individual. Notably, there may be separate buffers for the left-eye and right-eye views, and each of these buggers may be an RGB buffer. Therefore, with a single RGB buffer, there may be different integrations or duty-cycle weightings for the RGB images for the left and right eyes corresponding to the left-eye and right-eye views. This integration or mixing provides the appropriate combination of the left-eye and the right-eye views to improve or optimize the light received by an individual's eyes. Note that this approach may provide more of a continuous adjustment, which can improve the performance.

In some embodiments, the duty-cycle weight or integration is not perfect. Consequently, in order to avoid crosstalk, the computer system may apply the pixel mapping to those pixels that need mixed intensity, and may not apply the pixel mapping to the remainder of the pixels (such as those in a black background, in order to obtain the correct color). Thus, there may be a binary decision as to whether or not to apply the pixel mapping to a given pixel.

Alternatively or additionally, in some embodiments a phase shift is applied to the drive pixels based at least in part on the left and right eye positions or locations. Note that this approach may be more discrete, which may impact the overall performance.

We now further describe DSL. Autostereoscopic, plenoptic or light filed displays are multiview 3D displays that can be seen without glasses by the user. They provide a potential opportunity to overcome the discomfort caused by wearing 3D stereoscopic glasses or head mounted displays. This may be useful in use cases where the additional eye/head-ware is a physical limitation, such as in the medical field where maintaining sterility of the operating field of a surgery is important.

Existing autostereoscopic displays often provide directionality to pixels by inserting an optical layer such as a lenticular lens or a parallax barrier between a flat LCD panel and the user. However, this approach often has limitations, which are mainly because of the decrease in resolution and narrow viewing zones. Notably, the optical layer between the light source and the viewer transforms the spatial distribution of the pixels into a spatio-angular distribution of the light rays. Consequently, the resolution of the 3D images is typically reduced by the number of viewpoints. Moreover, the decrease in resolution is also related with expressing a large depth of field. Usually, multiview displays suffer from poor depth of field. For example, an object that is at a distance from the display panel may become blurry as the depth increases, and more viewpoints are needed for crisp image expression. Furthermore, the viewing range of a multiview display is often limited to a predefined region at the optimal viewing distance or OVD (which is sometimes referred to as ‘the sweet spot’), and dead zones can occur between the sweet spots, where the disparity of the stereo image is inverted and a pseudoscopic 3D image appears.

However, adding head or eye-tracking to such displays may enable the user to view the 3D content with continuous motion parallax and with sufficient depth range. This is shown in FIG. 18, which presents a drawing illustrating a side view of operation of lenticular array display 1700. Note that the head or eye-tracking approach may allow the viewer's head and/or eyes to be tracked, and may use the position information to optimize the pixel resources (as described previously).

In some embodiments, the DSL technique is used to implement an eye-tracking-based autostereoscopic 3D display. This technique may match the optical layer (e.g., the lenticular lens) parameters to subpixel layouts of the left and right images to utilize the limited pixel resources of a flat panel display and to provide stereoscopic parallax and motion parallax. Because light rays are close to the optical axis of the lens, Snell's Law may be used to estimate the light ray direction.

The process in the DSL technique is shown in FIG. 19, which presents a drawing illustrating operation of lenticular array display 1700 (FIG. 17). The inputs in the DSL technique may be a stereo image pair (left and right images), the display and lens parameters, and the 3D head or eye positions of the user or viewer. Note that the image parameters may include I_(L)(I,j,k) and I_(R)(I,j,k), where i and j are the x and y index pixels and the k index is an RGB subpixel value that may directly map to the LCD panel subpixels. For example, red may equal 0, green may equal 1 and blue may equal 2.

Moreover, as shown in FIG. 20, which presents a drawing illustrating a front view of lenticular array display 1700, the display parameters may include a lens slanted angle (Θ), a lens pitch in x (l_(x)), a lens start position (l₀), and a gap (g) distance between the lens and the LCD panel. Furthermore, the lens start position may denote the horizontal distance from the display coordinate origin to the center of the first lenticular lens. Additionally, the 3D eye positions (e_(p)), which may be obtained by a head or eye tracker (e.g., in terms of the camera coordinates), may be transformed to display coordinates. Notably, ep may equal (x_(ep), y_(ep), z_(ep)), the eye position in x, y, z.

In the DSL technique, the ‘layout’ may be controlled by defining at the subpixel level (e.g., the RGB elements) a weighted left or right-view dominant component. The resulting image may be a combination of left and right pixels dynamically arranged to a single image that contains both left and right image information matched to the lens.

By estimating how light rays emanate from the eye of the viewer or user and pass through the lens and onto the LCD panel, each subpixel may be assigned to use the image subpixel value of its corresponding left or right image. Moreover, the subpixel may be generated at the center of the lens on the same horizontal plane. For example, as shown in FIG. 21, which presents a drawing illustrating a viewing geometry of lenticular array display 1700 (FIG. 17), the lens may be on a slant and may contain N views (such as 7 views). Two perspectives may render a left and right view. Each of the views may be ‘laid out’ so as to match the optics of the lens and tracked position of the user (per the render). The ‘layout’ may be controlled by defining at the subpixel level (e.g., the RGB elements) a weighted left or right-view dominant component. The resulting image may be a dynamically arranged combination of left and right pixels.

Notably, in FIG. 21, the ray direction close to the position of the user or viewer may be traced using the display parameters, and it may be compare with the ray directions from the RGB subpixel to the left and right eye positions. In some embodiments, the 3D light refraction at the surface of glass, which may be caused by the difference in the refraction indices of glass and air (via Snell's law), may be considered in the ray-tracing estimation. In FIG. 21, note that: pp_(x), pp_(y) may be the pixel pitch in x, y; lr may be the refractive index of a lens; Δ may be a distance from a projected eye position to the lens opening (one for left and right eye); sp may be a subpixel; p_(l) may be the (x_(pl), y_(ep), z_(ep)) lens projection of the eye position(s) on an LCD panel; and p₀ may be the (xp₀, yp₀, zp₀) position of a closest lens in the horizontal direction.

Note that the x, y positions of a current subpixel sp (x_(sp), y_(sp), k) may be expressed as

${x_{sp} = {{ipp_{x}} + \frac{\left( {k + {0.5}} \right)pp_{x}}{3}}},{and}$ y_(sp) = jpp_(y) + 0.5pp_(y). Then, the computer system may calculate p_(lx), the position of the corresponding position of the eye position e_(p) (x_(ep), y_(ep), z_(ep)) through the lens at the LCD panel plane, which are connected via the current subpixel position sp by 3D ray tracing model. Considering the refractive index of air equal to 1, Snell's law can be expressed as

${\frac{\sin\left( {\tan^{- 1}\frac{r_{l}}{g}} \right)}{\sin\left( {\tan^{- 1}\frac{r_{ep}}{z_{ep}}} \right)} = \frac{1}{lr}},$ where g is the gap distance between the lens and the LCD panel, lr is the refractive index of the lens, e_(p) (x_(ep), y_(ep), z_(ep)) is the eye position x, y, z, r₁ is a ray of light from the lens to the LCD panel, and r_(e) is a ray of light from the eye position e_(p) to the lens.

Thus, with the refractive index of air equal to 1, r _(l)=√{square root over (∥x _(pl) −x _(sp) ∥+∥y _(pt) −y _(sp)∥)} and r _(e)=√{square root over (∥x _(ep) −x _(sp) ∥+∥y _(ep) −y _(sp)∥)}. Then,

$r_{l} = {g\mspace{11mu}{{\tan\left( {\sin^{- 1}\frac{\sin\left( {\tan^{- 1}\frac{r_{e}}{z_{e}}} \right)}{lr}} \right)}.}}$ This gives

${x_{pl} = {x_{sp} + {\frac{r_{e}}{r_{l}}\left( {x_{ep} - x_{sp}} \right)}}},$ with x_(p0), the x position of the closest lens in the horizontal direction

${x_{p\; 0} = {{{{round}\left( \frac{x_{pl} - l_{0}}{l_{x}} \right)}l_{x}} + {l_{0}\mspace{14mu}{and}}}}\mspace{14mu}$ ${l_{0} = {l_{x} - {\frac{r_{l}}{r_{e}}\left( {y_{ep} - y_{pl}} \right)\tan\;\theta}}},$ where l₀ is the sum of the lens start position and the lens position offset by the subpixel y_(sp) and lens y_(pl) difference. The distance from the projected eye position to the lens is Δ=|x ₁ −x ₀|. By comparing the distances from the projected left/right eye positions to the lens lenticules, the pixel value or subpixel (considering the k index) value may be determined as the left image or right image as I(I,j,k)=I _(L)(i,j,k) if Δ_(L)<Δ_(R), or I _(R)(i,j,k) otherwise.

FIG. 22 presents a drawing illustrating dynamic mapping of pixels to tracked eye positions of a viewer. Note that the left mapping table shows view 1 at time 1, and contains the left and right perspective views. Moreover, the right mapping table shows view 2 and time 2, and contains the left and right perspective views.

Moreover, while the preceding examples use specific numerical values, these are illustrations of the analysis technique and are not intended to be limiting. In other embodiments, different numerical values may be used.

While the preceding embodiments used CT images to illustrate the various graphical, analysis and measurement techniques, the techniques may be used with other types of data, including data associated with different medical applications and non-medical applications.

In the preceding description, we refer to ‘some embodiments.’ Note that ‘some embodiments’ describes a subset of all of the possible embodiments, but does not always specify the same subset of embodiments.

The foregoing description is intended to enable any person skilled in the art to make and use the disclosure, and is provided in the context of a particular application and its requirements. Moreover, the foregoing descriptions of embodiments of the present disclosure have been presented for purposes of illustration and description only. They are not intended to be exhaustive or to limit the present disclosure to the forms disclosed. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present disclosure. Additionally, the discussion of the preceding embodiments is not intended to limit the present disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein. 

What is claimed is:
 1. An electronic device, comprising: multiple image sensors, having different fields of view and positions, configured to capture images, wherein the electronic device is configured to: capture the images using the image sensors; determine, based at least in part on apparent sizes of an anatomical feature in the images and a predefined or predetermined size of the anatomical feature, absolute motion of at least a portion of an individual along a direction between at least the portion of the individual and the electronic device; estimate a distance along the direction based at least in part on at least one of the apparent sizes of the anatomical feature in at least one of the images and the predefined or predetermined size of the anatomical feature; and compute, based at least in part on the estimated distance and angular information associated with one or more objects in the images relative to the positions, absolute motion of at least the portion of the individual in a plane that is perpendicular to the direction.
 2. The electronic device of claim 1, wherein the at least the portion of the individual comprises eyes of the individual.
 3. The electronic device of claim 1, wherein the one or more objects comprise pupils of the individual.
 4. The electronic device of claim 1, wherein the electronic device comprises second image sensors, having different second fields of view, configured to capture second images; and wherein the capturing, determining, estimating and computing operations are repeated for the second images to determine absolution motion of a second portion of the individual.
 5. The electronic device of claim 4, wherein the second portion of the individual comprises one of: a hand of the individual or a finger of the individual.
 6. The electronic device of claim 4, wherein the electronic device is configured to infer interaction with an object by the individual based at least in part on the determined absolute motion in the direction, the determined absolute motion in the plane or both of at least the second portion of the individual.
 7. The electronic device of claim 1, wherein the anatomical feature comprises one of: an interpupillary distance, a hand of the individual, or a finger of the individual.
 8. The electronic device of claim 1, wherein the anatomical feature is associated with the individual or a group of individuals that have one or more characteristics in common with the individual.
 9. The electronic device of claim 8, wherein the anatomical feature is an average or mean interpupillary distance.
 10. The electronic device of claim 1, wherein the electronic device comprises a time-of-flight (tof) sensor configured to capture tof information; and wherein the absolute motion along the direction and in the plane is determined based at least in part on the tof information.
 11. The electronic device of claim 1, wherein the electronic device comprises a display; and wherein the electronic device is configured to: generate stereoscopic images that comprise image parallax based at least in part on the determined absolute motion along the direction and in the plane and a viewing geometry that matches or corresponds to the absolute motion along the direction and in the plane; and provide the stereoscopic images on the display.
 12. The electronic device of claim 11, wherein the determined absolute motion in the direction, the determined absolute motion in the plane or both of at least the portion of the individual corresponds to positions of eyes or pupils of the individual; and wherein the stereoscopic images are generated based at least in part on the positions of the eyes or pupils of the individual.
 13. The electronic device of claim 11, wherein the determined absolute motion in the direction, the determined absolute motion in the plane or both of at least the portion of the individual corresponds to a focal point of the individual, and the stereoscopic images are generated based at least in part on the focal point.
 14. The method of claim 13, wherein an intensity of a given voxel in a given one of the stereoscopic images is based at least in part on a transfer function that specifies a transparency of the given voxel and the focal point, so that the stereoscopic images comprise foveated imaging.
 15. The electronic device of claim 11, wherein the image sensors capture images that comprise eyes of the individual, a hand or finger of the individual, and the display in which the stereoscopic images are displayed; and wherein image parallax and motion parallax of the stereoscopic images within the viewing geometry is based at least in part on the images.
 16. The electronic device of claim 1, wherein the absolute motion of at least the portion of the individual along the direction and in the plane is determined without using information associated with glasses worn by the individual or a glove worn by the individual.
 17. A non-transitory computer-readable storage medium for use in conjunction with an electronic device, the computer-readable storage medium storing program instructions, wherein, when executed by the electronic device, the program instructions cause the electronic device to perform one or more operations comprising: capturing images using image sensors; determining, based at least in part on apparent sizes of an anatomical feature in the images and a predefined or predetermined size of the anatomical feature, absolute motion of at least a portion of an individual along a direction between at least the portion of the individual and the electronic device; estimating a distance along the direction based at least in part on at least one of the apparent sizes of the anatomical feature in at least one of the images and the predefined or predetermined size of the anatomical feature; and computing, based at least in part on the estimated distance and angular information associated with one or more objects in the images relative to positions of the image sensors, absolute motion of at least the portion of the individual in a plane that is perpendicular to the direction.
 18. The computer-readable storage medium of claim 17, wherein the anatomical feature comprises: an interpupillary distance, a hand of the individual, or a finger of the individual.
 19. A method for determining absolute motion, comprising: by an electronic device: capturing images using image sensors; determining, based at least in part on apparent sizes of an anatomical feature in the images and a predefined or predetermined size of the anatomical feature, absolute motion of at least a portion of an individual along a direction between at least the portion of the individual and the electronic device; estimating a distance along the direction based at least in part on at least one of the apparent sizes of the anatomical feature in at least one of the images and the predefined or predetermined size of the anatomical feature; and computing, based at least in part on the estimated distance and angular information associated with one or more objects in the images relative to positions of the image sensors, absolute motion of at least the portion of the individual in a plane that is perpendicular to the direction.
 20. The method of claim 19, wherein the anatomical feature comprises: an interpupillary distance, a hand of the individual, or a finger of the individual. 